I would suggest not storing the image data in the DB, rather store the image URL in the DB and copy the file into the filesystem.
something like this for your form
<form method="post" action="my_file.php" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<input type="file" name="my_image">
</form>
then in your upload script ...
copy ("$my_image", "/var/www/$my_image_name")
and insert the $my_image_name varible in a field in your table and use the image by building a URL from the table data.
that is, unless you really must store the image data as a BLOB in the DB.