Forum Moderators: coopster
I have a MySQL table and every record has an associated .jpg. They are quite small - each one between 4-6KB. At the moment they are stored in a remote directory.
But I believe I can set a record type in the MySQL table to BLOB and store the images there.
From a "neatness" point of view I like the idea of doing that but my manual is not exactly enthusiatic about it - "You would need to write your application to handle images as binary data - so although it IS possible you may well find it easier etc. etc."
Can anyone offer any advice or guidance please.
Mark Barrett
If you use windows then it can be a good idea to store them in category based folders. If Linux then it doesn't matter so much.
Hope this will help you to decide
Michal Cibor
PS. Think how would you get the data to show it to user, as you can't just write: <img src="img.jpg">.
If you just have the image location saved in the same table as other information belonging on that page, the extra overhead is amost 0. If it's a simple JOIN query, it's still peanuts compared to a separate db connection.