How to upload and retrieve blob image using php
MySQL has four BLOB types:
1. TINYBLOB
2. BLOB
3. MEDIUMBLOB
4. LONGBLOB
You can choose whichever type you want. This code uploads and inserts image to the mysql database as a blob. The uploaded image is also displayed on the browser.
Other videos :
https://www.youtube.com/watch?v=ny8njrlaTJ4
https://vimeo.com/328879621
For source code : http://mauricemutetingundi.blogspot.com/2019/04/how-to-upload-blob-image-to-mysql.html
1. TINYBLOB
2. BLOB
3. MEDIUMBLOB
4. LONGBLOB
You can choose whichever type you want. This code uploads and inserts image to the mysql database as a blob. The uploaded image is also displayed on the browser.
Other videos :
https://www.youtube.com/watch?v=ny8njrlaTJ4
https://vimeo.com/328879621
For source code : http://mauricemutetingundi.blogspot.com/2019/04/how-to-upload-blob-image-to-mysql.html