Store image directly to mysql (with php POST)
<p>I am sending from PHP form image to server like </p>

<pre><code>&lt;input type="file" name="photo_1" /&gt;
</code></pre>

<p>On server I am doing this:</p>

<pre><code>extract($_POST);
insertNewImage($photo_1); //insert into mysql , type is BLOB
</code></pre>

<p>But in database it is stored as <code>FILE NAME.jpg</code> and <em>not as binary</em>, so what I am doing wrong? </p>
