Page 1 of 1

Preferences for handling images

Posted: Mon Mar 19, 2007 11:09 am
by PastorHank
I'm getting ready to start retrieving images for use with my web app and I was wondering which method do folks think is more efficient.

Storing the path to an image in the database or storing the image itself in the database and then using the image datafield on a display form.

Thank you

Posted: Mon Mar 19, 2007 11:19 am
by feyd
Path, hands down is more efficient.

Posted: Mon Mar 19, 2007 11:21 am
by Xoligy
Browsers can cache paths, it won't slow down your database and many other advantages. You might want to use the database to store the meta information.

Posted: Mon Mar 19, 2007 11:53 am
by Kieran Huggins
I like storing user content (images especially) as a file in the filesystem, named with the content's md5 hash. Meta data should be stored in the DB.

Posted: Mon Mar 19, 2007 3:20 pm
by PastorHank
Thank you for the input....using the path is working really well