title: How to get mime type of blob data available?
body: <p>I have a MySQL table in which some data blob data is stored in a cell.</p>
  
  <p>I tried to echo it.<br></p>
  
  <p>But  I don't know about the mime type of that data. How do I decide the mime type from the given blob data?</p>
  
  <p>I tried this code but don't know about the mime type of blob:</p>
  
  <pre><code>&lt;?php
  
      mysql_connect("localhost","root","");
      mysql_select_db("contents");
      $sql="SELECT * FROM `contents` limit 1";
      $result=mysql_query($sql);
      $row=mysql_fetch_assoc($result);
      echo $row['html']
  
  ?&gt;
  </code></pre>