Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi to All,
I have binary data in my sqlserver i want to download binary data(image,.doc,.pdf,..etc) from sql server.which control i need to use for downloading data? please help me with sample code..


Thanking you.
Posted

You can keep content-type (image/png, text/plain in database and then you can use generic handler (.ashx) then in ashx file you can query you database take the binary field and after setting conetnt-type you need to write that to ResponseStream.

Hope this link will help:
http://satindersinght.blogspot.in/2012/03/save-and-retrive-binarydata-from.html[^]

Let me know if you have questions.
 
Share this answer
 
You can export them to excel file.
 
Share this answer
 
Comments
NARAYANA0509 4-Oct-12 8:29am    
i want to download file as excel and .doc and .pdf and .jpeg files..
You can use the data export wizard by right clicking database name -> Tasks -> export data and can export them to your desired data location.
 
Share this answer
 

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