Use large objects (LOBs)

The VARCHAR, VARGRAPHIC, and VARBINARY data types have a limit of 32 KB (where KB equals 1024 bytes) of storage. While this may be sufficient for small to medium-size text data, applications often need to store large text documents. They might also need to store a wide variety of additional data types such as audio, video, drawings, mixed text and graphics, and images. There are three data types to store these data objects as strings of up to 2 GB (where GB equals 1 073 741 824 bytes).

The three data types are: binary large objects (BLOBs), single-byte character large objects (CLOBs), and double-byte character Large objects (DBCLOBs). Each table may have a large amount of associated LOB data. Although a single row containing one or more LOB values cannot exceed 3.5 GB, a table may contain nearly 256 GB of LOB data.

You can refer to and manipulate LOBs using host variables just like any other data type. However, host variables use the program's storage which may not be large enough to hold LOB values. Other means are necessary to manipulate these large values. Locators are useful to identify and manipulate a large object value at the database server and for extracting pieces of the LOB value. File reference variables are useful for physically moving a large object value (or a large part of it) to and from the client.