how get image from database to image control

Posted by Vchandra401 under C# on 3/13/2012 | Points: 10 | Views : 2550 | Status : [Member] | Replies : 2
pl z tell me how to get image stored in database to image-control




Responses

Posted by: Sksamantaray on: 3/13/2012 [Member] Silver | Points: 25

Up
0
Down
in database only keep file-name and store the physical file in a sub-folder of your project
While retrieving the file-name add the path and then bind it to image control.

Thanks,
Sanjay

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

Posted by: Sksamantaray on: 3/14/2012 [Member] Silver | Points: 25

Up
0
Down
Hi, V Chandra,
If you want to keep image in database in binary form then refer to following link for an example.

http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html

Thanks,
Sanjay

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

Login to post response