Back to Basics: File uploading
View Single Post
04-29-2008, 10:58 PM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Smaller question, not worth a new thread - I'm guessing to store an image in a MySQL database you would probably use something like base64_encode() or a blob data field. I'm thinking though that it's probably a hell of a lot faster to store files physically on the server and just store their location in the database. Less data in the database makes it quicker to access, and not having to encode or decode an image on retrieval would also add to the speed factor. Any opinions? When would storing an image in the database be recommendable?
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity