title: How to save an image to database using SQLite and PHP?
body: <p>I want to save an image to the database using SQLite. I send the image via <code>&lt;input type='file'&gt;</code> in HTML, get the file in the <code>$_FILES</code> var in PHP, and after this, what I should do?</p>
  
  <p>I created a <code>BLOB</code> field in the database. Currently I'm using SQLite 2.1, because that is the limitation of my homework. </p>
  
  <p>Should I convert an image to binary to store in a database or do something else?</p>