Possible Duplicate:
Storing Images in DB - Yea or Nay?
Images in database vs file system
I've been developing a web application using RIA technologies (Flex + PHP + MySQL + Ajax) and now I'm in a dilemma about image files.
I use some images in my Flex app, so I think "it could be awesome if I store them into database, and then retrieve from it; consecuently, maintain process should be more easy". But, here is my dilemma:
Should I store the physical URL of my images, or is going to be better if I store directly the image?
For example, should my Cars
table looks like:
ID
(autonumeric) |Source
(text)
or like this?
ID
(autonumeric) |Image
(longblob or blob)
I know that here are cool people that can answer me this question, explaining me which is better and why :)