Neo
Neo

Reputation: 2226

Image storage in website: store them in database or file system?

I'm developing a website with a function of picture storage. Users are able to upload their pictures and form an album.

Storing images in database or in file system, which is better? I'm using Spring MVC.

Thanks!

Upvotes: 1

Views: 648

Answers (1)

Aeseir
Aeseir

Reputation: 8414

There are a lot of opions on this so its a very open ended question. It comes down to preference and your IT structure.

If you or your corporation have the big IT resources then you could go down the DB path as the costs (performance and finance) are mitigated by economies of scale.

If not then file system is the way to go.

Some good reading material is located here that can help you too:

http://raima.com/database-system-vs-file-system/

http://databases.aspfaq.com/database/should-i-store-images-in-the-database-or-the-filesystem.html

Upvotes: 1

Related Questions