Solved

Preferred Method of Storing Images on a Website

Posted on 2013-06-21
3
259 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

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