 <p>You're not storing the actual image (binary data) into the database, but the <code>tmp_name</code> (string). Use <code>file_get_contents()</code>, like so:</p> <pre><code>$image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); </code></pre>