To read data from the sbspace of a smart large object, use one of the following smart-large-object functions:
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.
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 on the syntax of the mi_lo_read( ) and mi_lo_readwithseek( ) functions, see the IBM Informix: DataBlade API Function Reference.
You might also need to perform other operations on the open smart large object.
Task | Smart-Large-Object
Function |
For More
Information |
---|---|---|
Write data to the sbspace | mi_lo_write( ),
mi_lo_writewithseek( ) |
page Writing Data to a Smart Large Object |
Obtain the LO seek position | mi_lo_tell( ) | page Reading Data from a Smart Large Object |
Obtain status information | mi_lo_stat( ) | page Obtaining Status Information |
Obtain storage characteristics | mi_lo_stat_cspec( ) | page Obtaining Storage Characteristics |