newbie
newbie

Reputation: 24635

Should I save image binary data to database or save images as files?

I have program that saves unique images that are related to unique database fields to database as binary fields or save in folders as image files?

Upvotes: 2

Views: 982

Answers (2)

b_erb
b_erb

Reputation: 21241

I would rather use a distinct key/value storage if available. This can be hosted by your own or something like Amazon S3. If not, better save the images as files and organize meta data and path information in your database.

Upvotes: 1

Oded
Oded

Reputation: 499002

It depends on what you need to do with the images, how often you access them and how often they change.

There is no right answer for this one - it really depends on what you are trying to achieve.

Upvotes: 2

Related Questions