Read data from a smart large object

To read data from the sbspace of a smart large object, use either the mi_lo_read() function or the mi_lo_readwithseek() function.

The mi_lo_read() function begins the read operation at the current LO seek position. You can obtain the current LO seek position with the mi_lo_tell() function, or you can set the LO seek position with the mi_lo_seek() function.

The mi_lo_readwithseek() function performs a seek to a specified LO seek position and then begins the read operation. You specify the seek position at which to begin the read operation as arguments to mi_lo_readwithseek().

These functions both read a specified number of bytes from the open smart large object to a user-defined character buffer. For information about the syntax of the mi_lo_read() and mi_lo_readwithseek() functions, see the Informix® DataBlade® API Function Reference.

You might also need to perform other operations on the open smart large object.
Task Smart-large-object function More information
Write data to the sbspace mi_lo_write(), mi_lo_writewithseek() Write data to a smart large object
Obtain the LO seek position mi_lo_tell() Read data from a smart large object
Obtain status information mi_lo_stat() Obtain status information
Obtain storage characteristics mi_lo_stat_cspec() Obtaining storage characteristics