Log in

View Full Version : Blobbing images or file structure


cinq
10-27-2003, 05:12 AM
Which would be a better means to storing images ?
And why ?

Inputs required :)

Zachery
10-27-2003, 09:37 AM
Which would be a better means to storing images ?
And why ?

Inputs required :)
im totaly confused by this :\

Dean C
10-27-2003, 10:17 AM
He means is it better to store images in the database as a blob or as a file in a directory. Personally I prefer using directories as working with files in PHP is pretty easy :)

Dominus
10-27-2003, 10:49 AM
database + mysql4 = your best friend

Storing files in DIR, I found it hard to find anything when you have alot of files(as categorizing/linking+mysql backend), also for backup, you can just dump mysql and your done, you dont have to download your whole data structure to make a backup. :(

cinq
10-27-2003, 11:13 PM
He means is it better to store images in the database as a blob or as a file in a directory. Personally I prefer using directories as working with files in PHP is pretty easy :)

Thanks for the clarification Mist, and the input.
Thanks too to Dominus for his/her input.

One issue:
Will the SQL end be 'slower' if i blob the data ?

Brad
10-28-2003, 12:36 AM
Thanks for the clarification Mist, and the input.
Thanks too to Dominus for his/her input.

One issue:
Will the SQL end be 'slower' if i blob the data ?
SQL will most likely be the same on speed depending on how you are pulling the results. Keep in mind that the table the images are stored in can grow large and might hurt you later on if you do not have telnet or other means of backing up the database without a php or some other kind of script that can timeout.