Home | Previous Page | Next Page   Data Manipulation > Using Smart Large Objects > Creating a Smart Large Object >

Writing Data to a Smart Large Object

To write data to the sbspace of a smart large object, use one of the following smart-large-object functions:

These functions both write a specified number of bytes from a user-defined character buffer to the open smart large object that an LO file descriptor identifies. The smart-large-object optimizer determines the default extent size for the smart large object based on the amount of data that you write. Therefore, try to maximum the amount of data you write in a single call to mi_lo_write( ) or mi_lo_writewithseek( ).

Important:
An attempt to write data to an sbspace that does not exist results in an error.

In addition to a write operation, you might also need to perform the following operations on the open smart large object.

Task Smart-Large-Object
Function
More Information
Read data from the sbspace mi_lo_read( ),
mi_lo_readwithseek( )
page Reading Data from 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
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]