Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
when insert the image into mytable in to sql data base from apage by using the code
so it stor in database not the image but another thing like system.web.....
how converted the path into image
thanks
Posted

your question is not entirely clear, but I would suggest instead of trying to store images directly to the database, store their physical/virtual path and then if you need to display images on your webpage read the path from the database and load the image from that path.

Hope this helps...
 
Share this answer
 
Comments
suhail5 22-Oct-11 19:02pm    
how can i insert when i inserted the path it show in the webpag the path of picture not the picture
thanks
I.explore.code 23-Oct-11 5:35am    
you would have to use System.IO namespace to load the image from that path. You can use BinaryWriter class or just a simple PictureBox.Load() to load the image from the path you store in the database.
refer this link

http://www.codeproject.com/KB/database/ImageSaveInDataBase.aspx
 
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