I am having the biggest problem trying to force a download from a MySQL blob field. Here's what I'm doing:
header("Content-Disposition: attachment; filename=$filename");
header("Content-Type: application/octet-stream");
echo $thedata;
exit();
...Where $filename is the name of the file, and $thedata is the MySQL blob field. I already know I'm filtering my database correctly, I am simply calling the field using a URL variable. The download screen pops up, but when I download the file the size is 0k. So I'm figuring I must be doing something wrong calling the data. I've never worked with blob fields before, so I would really appreciate any help on this!