Large object manipulation with the IBM OLE DB Provider

You can get and set data as storage objects (DBTYPE_IUNKNOWN) with the IBMDADB2 provider by using the ISequentialStream interface.
You can use the ISequentialStream interface in the following ways:
  • To bind a storage object to a parameter, the DBOBJECT in the DBBINDING structure can only contain the value STGM_READ for the dwFlag field. IBMDADB2 will execute the Read method of the ISequentialStream interface of the bound object.
  • To get data from a storage object, your application must run the Read method on the ISequentialStream interface of the storage object.
  • When getting data, the value of the length part is the length of the real data, not the length of the IUnknown pointer.