Hi, i must admit, i'm a bit confused concerning your problem. You get binary data from your sql-server, which is actually an image? You want to write that to a doc file??? You use Response.[SomeWriteMethod] for that? There is some mixup, i'm sure. What your code basically does, is , it writes the binary data you retrieved from your sql-server (on server-side) to your responsestream (so someone can download it using the browser). There is no interaction with any file on your client-harddrive. You cannot directly write to a client file from your server-page. Maybe i'm just not understanding you correctly. Maybe someone else can help or you can describe a little bit more what youre trying to archive.