Creating a smart large object

About this task

Perform the following steps to create a smart large object:

Procedure

  1. Allocate an LO-specification structure with the ifx_lo_def_create_spec() function.
  2. Ensure that the LO-specification structure contains the desired storage characteristics for the new smart large object.
  3. Create an LO-pointer structure for the new smart large object and open the smart large object with the ifx_lo_create() function.
  4. Write the data for the new smart large object to the open smart large object with the ifx_lo_write() or ifx_lo_writewithseek() function.
  5. Save the new smart large object in a column of the database.
  6. Deallocate the LO-specification structure with the ifx_lo_spec_free() function.