Solved

Preferred Method of Storing Images on a Website

Posted on 2013-06-21
3
255 Views
Last Modified: 2013-07-03
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
Comment
Question by:VBBRett
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 167 total points
ID: 39266771
General rule of thumb is on the file system
http://research.microsoft.com/apps/pubs/default.aspx?id=64525
0
 
LVL 15

Assisted Solution

by:gplana
gplana earned 166 total points
ID: 39266774
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
 
LVL 12

Assisted Solution

by:jitendra patil
jitendra patil earned 167 total points
ID: 39267618
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question