Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Storing images in SQL database

Author  Topic 

caa5042
Starting Member

6 Posts

Posted - 2011-09-10 : 16:56:18
I am told its a bad idea to store images in a database. What is the most proper way to create a table that contains images in a database? so that its easy for your asp.net application to get the images from the database and display them..

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-11 : 11:33:46
are you in sql 2008 ? then read below

http://visakhm.blogspot.com/2010/02/filestream-storage-in-sql-2008.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-11 : 11:35:00
if before 2008 then store it as varbinary(max).

http://chiragrdarji.wordpress.com/2007/03/05/storing-and-retrieving-image-in-sql-server/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -