I'm having a wierd problem with PHP/MySQL.
I have uploaded into a BLOB a word document. Its successfuly and if (say using SQLYog) I open and save the BLOB as a file it will open perfectly in Open Writer.
However the minute I try to output the data through PHP I get a corrupt document.
I'm using the following to do the output:
header('Content-length: '.$file['FileSize']);
header('Content-Type: '.$file['FileSize']);
header('Content-Disposition:attachment; filename="'.$file['FileName'].'"');
echo $file['Content'];
Any help would be great.
Thanks
Antony