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( ) |
page Obtaining an LO File Descriptor |
2. | Initialize an LO-status structure with the status information for the smart large object. | mi_lo_stat( ) | page Initializing an LO-Status Structure |
3. | Use the appropriate LO-status accessor function to obtain the status information that you need. | Table 42 | page Obtaining Status Information |
4. | Free resources. | mi_lo_stat_free( ) | page Freeing an LO-Status Structure |
Figure 30 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 (Figure 26).