SQLite BLOB Tools - Import, Export, View and Edit

In SQLite, the BLOB (Binary Large Object) data type is used to store binary data such as images, audio files, or any other non – text data. More: SQLite BLOB.

SQLite BLOB - type family and size limits

Type in SQLiteMaximum size
BLOBa storage class, not a hard type - the real limit comes from SQLITE_MAX_LENGTH
SQLITE_MAX_LENGTHcompile-time default 1,000,000,000 (about 1 GB)

BLOB versus CLOB in SQLite

SQLite is dynamically typed: declaring a column BLOB or TEXT only sets its type affinity, and what is actually stored is decided by the value written. Declaring a column CLOB does not give you CLOB semantics.

What limits you first

SQLITE_MAX_LENGTH, a compile-time constant defaulting to one billion bytes. That figure is more accurate than "1 GB", and the only way to change it is to rebuild SQLite - there is no runtime setting.

BLOB from the command line

Things that bite with BLOB in SQLite