I wish to save a picture towards the database using SQLite. I send the look via <input type='file'> in HTML, obtain the file within the $_FILES var oh PHP, and now, things i should to complete?

I create an BLOB area within the database. Presently I am using SQLite 2.1 (this is actually the limitation from the homework, however i utilizing a real situation during my current job). I ought to convert the look to binary to keep in database or make a move else?

that you can do $image = file_get_contents( $_FILES['file']['tmp_name'] );

After which upload it to your blob column (obviously it must be steered clear of before, PDO)