Locations for simple-large-object data

Before your Informix® ESQL/C program accesses a simple-large-object column, it must determine where the simple-large-object data is located.

To specify whether the simple large object is located in memory or in a file, specify the contents of the loc_loctype field of the locator structure. The following table shows the possible locations for simple-large-object data.
Table 1. Possible locations for simple-large-object data
Value of loc_loctype field Location of simple-large-object data See
LOCMEMORY In memory Locate simple large objects in memory
LOCFILE In an open file Locate simple large objects in open files
LOCFNAME In a named file Locate simple large objects in named files
LOCUSER At a user-defined location User-defined simple-large-object locations

Set loc_loctype after you declare the locator variable and before this declared variable receives a simple-large-object value.

The locator.h header file defines the LOCMEMORY, LOCFILE, LOCFNAME, and LOCUSER location constants. In your Informix ESQL/C program, use these constant names rather than their constant values when you assign values to loc_loctype.

In a client-server environment, Informix ESQL/C locates the simple large object on the client computer (the computer on which the application runs).