Share via


CDynamicAccessor::SetBlobHandling

Sets the BLOB handling value for the current row.

bool SetBlobHandling( 
   DBBLOBHANDLINGENUM eBlobHandling  
);

Parameters

  • eBlobHandling
    Specifies how the BLOB data is to be handled. It can take the following values:

    • DBBLOBHANDLING_DEFAULT: Handle column data larger than nBlobSize (as set by SetBlobSizeLimit) as BLOB data and retrieve it through an ISequentialStream or IStream object. This option will attempt to bind every column containing data larger than nBlobSize or listed as DBTYPE_IUNKNOWN as BLOB data.

    • DBBLOBHANDLING_NOSTREAMS: Handle column data larger than nBlobSize (as set by SetBlobSizeLimit) as BLOB data and retrieve it through reference in provider-allocated, consumer-owned memory. This option is useful for tables that have more than one BLOB column, and the provider supports only one ISequentialStream object per accessor.

    • DBBLOBHANDLING_SKIP: Skip (do not bind) columns qualifying as containing BLOBs (the accessor will not bind or retrieve the column value but it will still retrieve the column status and length).

Remarks

You should call SetBlobHandling before calling Open.

The constructor method CDynamicAccessor sets the BLOB handling value to DBBLOBHANDLING_DEFAULT.

Requirements

Header: atldbcli.h

See Also

Reference

CDynamicAccessor Class