title: Output blob from mysql
body: <p>I'm having a wierd problem with PHP/MySQL.</p>
  
  <p>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.</p>
  
  <p>However the minute I try to output the data through PHP I get a corrupt document.</p>
  
  <p>I'm using the following to do the output:</p>
  
  <pre><code>header('Content-length: '.$file['FileSize']);
  header('Content-Type: '.$file['FileSize']);
  header('Content-Disposition:attachment; filename="'.$file['FileName'].'"');
  echo $file['Content'];
  </code></pre>
  
  <p>Any help would be great.</p>
  
  <p>Thanks</p>
  
  <p>Antony</p>