Save image in db or in file structure

259 Views Asked by At

Possible Duplicate:
Storing Images in DB - Yea or Nay?

i am curios about to know, if i should save uploaded images in the database as binarys or save in the filestructure? Maybe some examples of when i should use both scenarios.

Duplicate topic: Storing Images in DB - Yea or Nay?

1

There are 1 best solutions below

0
On BEST ANSWER

Depends totally on what your after, but likely you want then in a DB. If you just upload you own (like own webpage) you could do with filesystem, but this doesn''t allow for duplicate names since it (if allowed to) overwrites the original.

But well on the other hand the filesystem could be a DB itself