Jump to content

Update/delete blob - how to


jake_ali

Recommended Posts

Hi, Just wondering if anyone can give me some pointer on how to delete/update BLOB properly. My app stores articles/documents/images in mysql. Inserting files works great, but if I delete a row which has, say a 2mb pdf file, the mysql table size does not decrease (table.MYD). What would be the proper way to delete/update blob column? Is there specific functions that I use? I searched extensively on search engine but no luck finding anything.

Thanks in advance for you help.

-Jake
Link to comment
Share on other sites

Another question: I have a lot of php scripts, getting kinda troublesome to manage. So I am storing those scripts in mysql and retrieving by id, so the link would look like http://localhost/controller.php?id=pageid ..............what should be header() for content-type for these scripts to execute? my browser is interpreting as application/octet-stream and prompting to save the file rather than executing as a regular php page.

Thanks!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.