MySQL BLOB Tools - Import, Export, View and Edit

In MySQL, the BLOB (Binary Large Object) data types are used to store large amounts of binary data, such as images, audio, and video files. More: MySQL BLOB.

MySQL BLOB - type family and size limits

Type in MySQL / MariaDBMaximum size
TINYBLOB255 bytes
BLOB64 KB
MEDIUMBLOB16 MB
LONGBLOB4 GB

BLOB versus CLOB in MySQL / MariaDB

MySQL has no type called CLOB - the TEXT family takes its place. Both measure length in bytes, but TEXT is decoded with the column character set and takes part in sorting and comparison, while BLOB is treated as opaque binary.

What limits you first

The ceiling you actually hit is not the 4 GB column limit but max_allowed_packet (4 MB by default on MySQL 5.7, 64 MB on 8.0). A single value larger than that fails at the protocol layer.

BLOB from the command line

Things that bite with BLOB in MySQL / MariaDB