|
The mi_lo_open() function opens an existing smart large object for access.
The mi_lo_open() function is a constructor function for an LO file descriptor. To access the data of a smart large object, a DataBlade API module must first open the smart large object. The mi_lo_open() function opens an existing smart large object. The mi_lo_open() function performs the following steps to open the existing smart large object that LO_hdl references:
The mi_lo_open() function allocates a new LO file descriptor in the current memory duration.
Important: The database server does not check access permissions on the smart large object that the LO handle identifies. Your DataBlade API module must ensure that the end user or another application is trusted.
Each mi_lo_open() call is implicitly associated with the current session. When this session ends, the database server deallocates any smart large objects that are not referenced by any columns (those with a reference count of zero (0)).
Tip: The mi_lo_open() function replaces the mi_large_object_open() function, which Informix supports for backward compatibility only. Use mi_lo_open() for all new DataBlade API modules.
Return Values
Related Topics
See the descriptions of the following functions: mi_lo_close, mi_lo_copy(), mi_lo_create(), mi_lo_expand(), mi_lo_read(), mi_lo_readwithseek(), mi_lo_specget_def_open(), mi_lo_specset_def_open(), mi_lo_tell(), mi_lo_write(), and mi_lo_writewithseek().
For more information, see Opening a Smart Large Object and Smart-Large-Object Locks.