c# code to download a file using sql

Posted by Chaithragm under C# on 1/2/2013 | Points: 10 | Views : 1422 | Status : [Member] | Replies : 6
Hi ..
I am using asp.net 2012 i have uploaded images like pdf,doc,jpg to sql server.
now i need to download from sql server in such a way ,when i click download button it should ask the path to download(where you want to save it)
then the file need to downloaded on that choosen location.

please do needfull help

thank you...




Responses

Posted by: Chaithragm on: 1/2/2013 [Member] Starter | Points: 25

Up
0
Down
i need to get the images from database

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shubham on: 1/2/2013 [Member] Starter | Points: 25

Up
0
Down
Chaithragm

are u store images on database

Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shubham on: 1/2/2013 [Member] Starter | Points: 25

Up
0
Down
if u save image on database to convert image in binary format so fetch image from database and convert into image

Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chaithragm on: 1/4/2013 [Member] Starter | Points: 25

Up
0
Down
when i click on download button it should ask the path to download(where you want to save it)
how to do this

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 1/4/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
we can achieve this by using webclient.downloadfile

Please go through this link once
http://msdn.microsoft.com/en-us/library/ez801hhe.aspx


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response