Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing a photo in a table
Message
From
10/11/2009 09:09:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Database design
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01433986
Message ID:
01434007
Views:
56
>>I have mugshot photos I want to store in a table along with the persons profile. Previously I have only stored the url to the photo so not sure what is the proper column type etc. I know there is an Image type, but is it that simple? I would love any advice for this or advice to not do it.
>
>The image data type has been superseded with varbinary(MAX) in SQL 2005 and later. SQL 2008 also introduced filestream data type which is more efficient for big image files. Check http://coolthingoftheday.blogspot.com/2009/01/sql-server-varbinary-vs-filestream-code.html

Thanks Sergey,

Naomi provided a link to past messages where the recomendation appears to be store only a url in the database. In my case I am only needing an Avatar type field in the profile which may be a small jpg or mugshot to display; 215 pixels square at 72. I am not opposed to just storing a url as I have done that many times but thought I would progress to storing the image in the data. What do you think is the best idea for a overall strategy?
Thanks a bunch
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform