bool  CRBase::GetBLOB(ULONG nCol, void *pBlobBuffer, ULONG* pnRead=NULL);

Return Value

        true if successful; otherwise false.

Parameters

        [in] nCol:

                A column ordinal.

        [in] pBlobBuffer:

                A pointer to a client allocated buffer.

        [in] pnRead:

                A pointer to a ULONG data and can be NULL.

Remark

        Gets a BLOB data through a storage object by creating a temporary accessor. If pnRead is NULL, it is implied that a client allocates a buffer with an enough size. For getting the length of BLOB in bytes, a client can either call CRBase::GetLength or CRBase::GetLenStatus with the original data type of the column nCol. If pnRead is not NULL, the pointed data determines the length of buffer pBlobBuffer and receives the actual length data returned after the call. For how to use the function, see the example BLOBs.

        Additionally, a client can also use CRBase::GetDataEx to get a BLOB data through an in-memory data or a storage object.

CRBase Class Overview & Class Members