tags:

views:

172

answers:

2

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?

+2  A: 

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.

Oded
Images are big in size, for example 500k-1mb
newbie
Doesn't matter. How many images are you talking about? What are the usage scenarios?
Oded
One image is approximately loaded 5-10 times per session
newbie
You can always save the image data to the filesystem first time it is called and pick it up from there (and if `! File.Exists(path)` refetch from DB.
Oded
+1  A: 

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.

PartlyCloudy