Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am making a website that will have a big ammount of photos and images, where should i store these is a database an efficient option?


share|improve this question

In general, images store directly on disk will load faster, and will be cheaper to store (because, in general, database space is more expensive than disk space.

share|improve this answer

The smartest way is to just have an /images/ directory that's further broken down into images/buttons, images/avatars, images/icons, or anything else that makes managing, organizing, and keeping track of them easiest for you.

But if you're getting a lot of hits and the server is being worked to display all of these pictures (many http requests), you might want to look into a CDN (or just host them elsewhere).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.