Hi, I want to display a image in picture box in visual studio. This image has to be retrieved from sql server 2008 database table. Now how shud i save the image in the table, so that i can retrive it in visual studio. I would like to store only the image path in the database. so please suggest me
if the solution is deployed on the server then your local path wont work,will through an error.please keep the image on the server folder and then give the same path in database column.
Take a look at FILESTREAM in Books Online - which will allow you to save the image file to SQL Server and SQL Server will save it to the file system. You can setup that file system for access directly so your program can get to the image file directly using UNC path that is stored in the database.