The ITLargeObject interface

The ITLargeObject interface is exposed by value objects that must expose to their underlying data a functionality similar to that of a file I/O interface. Typically, such objects represent server data types that are derived from or contain a server smart large object type instance.

This functionality of this interface is supported only with HCL Informix® databases.

The following excerpt illustrates how the large object interface is extracted:
ITLargeObject *loif;
if (v->QueryInterface(ITLargeObjectIID, (void **) &loif)
    == IT_QUERYINTERFACE_SUCCESS)
The following loop reads data from the large objects and writes it to cout:
while ((n = loif->Read(buf, sizeof(buf))) > 0)
{
    cout.write(buf, n);
} 
cout.flush();