Home | Previous Page | Next Page   Data Types > Description of Data Types >

BLOB (IDS Only)

The BLOB data type stores any kind of binary data in random-access chunks, called sbspaces. Binary data typically consists of saved spreadsheets, program-load modules, digitized voice patterns, and so on. The database server performs no interpretation of the contents of a BLOB column. A BLOB column can be up to 4 terabytes (4*240 bytes) in length, though your system resources might impose a lower practical limit.

The term smart large object refers to BLOB and CLOB data types. Use CLOB data types (see page CLOB (IDS Only)) for random access to text data. For general information about BLOB and CLOB data types, see Smart Large Objects (IDS Only).

You can use these SQL functions to perform operations on a BLOB column:

For more information on these SQL functions, see the IBM Informix: Guide to SQL Syntax.

No casts exist for BLOB data. Therefore, the database server cannot convert data of type BLOB to any other data type. Within SQL, you are limited to the equality ( = ) comparison operation for BLOB data. To perform additional operations, you must use one of the application programming interfaces (APIs) from within your client application.

You can insert data into BLOB columns in the following ways:

If you select a BLOB column using DB-Access, only the string <SBlob value> is returned; no actual value is displayed.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]