Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Saved my Image in Database as Datatype::Image...I needed to download that image and save in one folder
Posted

C#
dim con as sqlconnection = new sqlcon("put your connection string here")
dim com as sqlcommand=new sqlcommand("select image from tablename where id='1'")
dim image as image
con.open
image=image.frommemorystream(io.new memorystream(ctype(com.executescalar,byte())))
con.close
image.save("c:\)
 
Share this answer
 
 
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