title: get the BLOB value of an image and insert it to database in php
body: <p>I have this code:</p>
  
  <pre><code>$filename = $_FILES['file']['name'];
  $blob_value = [CODE TO CONVERT FILENAME TO BINARY];
  
  $query = "INSERT INTO uploads VALUES('$blob_value');";
  mysql_query($query);
  </code></pre>
  
  <p>I want to convert the image file to its equivalent blob_value and insert it to database. how am i suppose to do that. thank you for your response!</p>