Jump to content

image uploading into blob?


boo_lolly

Recommended Posts

If you are using MySQL, it's really not worth it (in my experience). The one advantage is that your file is in your db record, so they will never be out of sync. But, every time you want to access the image, you have to do a DB query. So if you plan on accessing them a lot, you will probably end up writing something to cache them as files, so what's the point.

 

MySQLi makes the inserts a LOT easier as you can use bind() to attach to a file handle. Then it sends the data in pieces, saving lots of resources. So, if you DO want to keep it in a blob, i would HIGHLY recommend using MySQLi

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.