How to store multiple Images in database?

If I have a webapp which serves images to users, is it very bad to store the images in the database? (assume Heroku and PostgresSQL).

  • Answer:

    You could do it if you have small images. But with images as heavy as a few Mo of Ko it's not a good idea. Why would you do that when it's so simple to store them remotly on Amazon S3, Rackspace, etc.?

Michel Pigassou at Quora Visit the source

Was this solution helpful to you?

Other answers

You can store the images in database, in /tmp folder within Heroku, or in S3. Where you store it depends on your application, but Heroku recommends you to store it in S3.

Robin Thomas

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.