IPB_Session interface:
SetBlob method
Description
Destroys the existing data in a blob and copies data into it from a buffer.
Syntax
SetBlob (pbblob blb, const void* bin, pblong len)
Argument |
Description |
---|---|
blb |
A valid pbblob object whose value is to be reset |
bin |
A pointer to the source buffer |
len |
The length in bytes of the data in the buffer |
Return Values
PBXRESULT. Returns PBX_OK for success or PBX_E_INVALID_ARGUMENT if the new blob value is invalid; otherwise, returns PBX_E_OUTOF_MEMORY.
Usage
A deep copy is performed. The existing value is destroyed first, and then the contents of the bin argument are copied into a new value.