Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I stored a file in my database table. The file is converted to binary, Now i want To retrieved the file back and save it to my selected location in my desktop.

Can anyone show me the code on how to do this. I am working on a form/windows based.


Thanks & Regards

--careLess
Posted
Updated 6-May-15 19:04pm
v2

1 solution

 
Share this answer
 
Comments
careLess aucim 7-May-15 2:33am    
Hi Abhinav S,

Thanks for your suggestions, but what i am needing is to retrieved a file (docx, doc, pdf, xlsx, xls, etc...) that is stored in the database(stored as binary) and i want that file to saved in my desktop.
Abhinav S 7-May-15 2:41am    
In this link, https://support.microsoft.com/en-us/kb/308042, an image is written to drive using FileStream.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900