Storing Images to Database and Retrieving to GridView

Over the internet, one can easily find a lot of references for uploading images to a database. The major problem arises when one has to retrieve these images and display them in some server control, like the GridView control.

Nice article, read more...

 

2 Comments

  • Hi I would advise you not to store images in the database but to store them in some folder and the url of the folder in the database. Hence you can retrieve the URL of the image at the runtime and bind it to the correct control

  • Vikram I disagree, both solutions are valid, the thing is to know what you want to do. I am building a kind of Flickr tool for my company, and having the images stored in the database works quite well. It's much easier to manage and like any piece of content, I can build a management tool for any Crud functions.

Comments have been disabled for this content.