GetBlobLength

PowerBuilder Native Interface

IPB_Session interface:

GetBlobLength method

Description

Returns the length in bytes of blob data in a buffer.

Syntax

GetBlobLength (pbblob bin)

Argument

Description

bin

A pointer to the source buffer

Return Values

pblong.

Examples

In this example, the IPB_Value GetBlob function is used to get a blob value from the PBCallInfo structure. The length of the blob is used as an argument to the NewBlob function:

PBCallInfo* ci = new PBCallInfo;
pbblob ret_val;
pblong bloblen;

ret_val = ci.returnValue-> GetBlob();
bloblen = Session-> GetBlobLength(ret_val);
ret_val = Session-> NewBlob
   (Session->GetBlob(ret_val), bloblen);

See Also