Click here to Skip to main content
16,022,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have stored images in table but I haven't stored image path I have only stored image data so tell me how to retrieve those images from database & show in Image control? I am using SqlServer 2005 & asp.net 3.5 please tell me how to do this? if possible then send me code also.My email id is [e-mail address removed]
thanks in advance.
Posted
Updated 20-Feb-10 22:17pm
v5

whenever you store the image details in the database then the easiest way is to store the image path also to the database table...


so its easy to assign imageurl to an image control...
 
Share this answer
 
No big deal..

Do whatever you do for other data. Use an Image Data type field and pass the file to it using Byte Array.

Similarly while you retrieve,

get the Image data in ByteArray and convert it to file.

:)
 
Share this answer
 
There[^] are[^] plenty[^] of[^] examples[^].

Google is your friend! ;)
 
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