[dropcap]T[/dropcap]his tutorial covers a simple way to store images in a mysql database.
Inserting images in mysql
MySQL has a blob data type which can used to store binary data. A blob is a collection of binary data stored as a single entity in a database management system. Blobs are typically images, audio or other multimedia blob objects. MySQL has four BLOB types:
- TINYBLOB
- BLOB
- MEDIUMBLOB
- LONGBLOB
All these types differ only in their sizes.
https://www.youtube.com/watch?v=kPGxWaIhLmk
Source: YouTube