Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Preferred Method of Storing Images on a Website

What is the preferred method of storing uploaded images onto a website as far as technology goes today?  Is it storing an image as an image type in SQL Server, storing the image as a varbinary type in a SQL Server table, storing the image as a file blob in a local directory on the server and having it retrieved when needed?  What do you guys think is the best and most effecient way to do this?  Thanks!
0
VBBRett
Asked:
VBBRett
3 Solutions
 
GaryCommented:
General rule of thumb is on the file system
http://research.microsoft.com/apps/pubs/default.aspx?id=64525
0
 
gplanaCommented:
It depends of what do you want to do with the image, but most of the times you will prefer to store the image as a file so operating system can access to it. Also if you store the image as a file you can just store the file name on a varchar field and avoid using the blob specific operations to handle with the image.

If you need the image to be included on some transactions inside the database, then it should be better to store it inside the database.

Hope it helps.
0
 
Jitendra PatilSr.Software EngineerCommented:
store images on a disk rather than database, instead just store the path to image in database, that will take less space than actual image in your database.

hope this helps.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now