CCeDBProp::SetBlob

This method sets the value of a binary large object (BLOB) property.

At a Glance

Header file: Wcedb.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later

Syntax

void SetBlob( CEBLOB blob, UINT nMode = Copy );

Parameters

blob
Initialized CEBLOB structure.
nMode
Specifies whether to allocate memory to store the passed in CEBLOB structure. It is one of the following values:
CCeDBProp::Copy
Creates a copy of the data buffer pointed to by the lpb member of the CEBLOB structure passed in the blob parameter. This memory is released when the CCeDBProp object is destroyed.
CCeDBProp::NoCopy
The property maintains a pointer to the same data buffer pointed to by i member of the CEBLOB structure passed in the blob parameter, but doesn't own it. The memory is not released when the CCeDBProp object is destroyed.

Return Values

None.

Remarks

The blob parameter must be properly initialized.

You can only call SetBlob on a property of the type CeDBProp::Type_Blob.

See Also

CCeDBProp::GetBlob, CEBLOB