Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i want to display images whitch stocked in data base.
How can i do that ?
Posted

Usually I answer most of questions in more or less fine detail, so I'm sorry that I don't do it in this case. The reason is: this question is way, way too popular, and CodeProject keeps many answers to it, answered again and again. Please, just look here:
http://www.codeproject.com/search.aspx?doctypeid=4%3b5&q=database+%28image+OR+picture%29+%28store+OR+get+OR+retrieve%29[^].

That's over thousand results, and many answers are detailed enough.

Good luck,
—SA
 
Share this answer
 
As it's a web site, you need to write a HTTP handler that handles a URL which contains an id that identifies your image. Then you look up the image and return the bytes of the image so that you can use that url in an img tag. There's tons of articles on how to do that.
 
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