Obtaining status information for a smart large object
About this task
To obtain the status information for an existing smart
large object, take the following steps.
Step | Task | Smart-large-object function | More information |
---|---|---|---|
1. | Obtain a valid LO file descriptor for the smart large object whose status information you need. | mi_lo_create(), mi_lo_copy(), mi_lo_expand(), mi_lo_from_file(), mi_lo_open() | Obtain an LO file descriptor |
2. | Initialize an LO-status structure with the status information for the smart large object. | mi_lo_stat() | Initialize an LO-status structure |
3. | Use the appropriate LO-status accessor function to obtain the status information that you need. | Status information in the LO-status structure | Obtain status information |
4. | Free resources. | mi_lo_stat_free() | Free an LO-status structure |
The following figure shows the first three of these
steps that a DataBlade®
API module
uses to obtain status information for the smart large object data
in the emp_picture column of the employee table (A smart large object in
a database column).