MySQL BLOB – Maximale Grösse
Um z.B. Fotos in der Datenbank zu speichern nutzt man am besten das BLOB Format. Folgende maximale File Grössen kann man im Blob Format speichern:
L = length of data
TINYBLOB = L + 1 bytes (max size is 2^8 – 1 or 255 bytes)
BLOB = L + 2 bytes (max size is 2^16 – 1 or 65,535 bytes, 65KB)
MEDIUMBLOB = L + 3 bytes (max size is 2^24 – 1 or 16,777,215 bytes, 16MB)
LONGBLOB = L + 4 bytes (max size is 2^32 – 1 or 4,294,967,295 bytes, 4GB)
Weitere Angaben dazu gibt es im MySQL Handbuch.