This procedure adds Blob value for existing field. The blob value is proviced as pair pointer andlength in bytes. NOTE: The blob value is added as text value to JSON.
Parameter | Type | Description | |
---|---|---|---|
ptr | POINTER | Mandatory | Pointer to field |
valuePtr | POINTER | Mandatory | Pointer to Blob value |
valueLen | 10U 0 | Mandatory | Length of Blob value |
The procedure returns pointer of field. If procedure can’t add value, then returns null.
Examples:
xxBlob = 'Hello World';
xxPtr = respAddField('data': 'myText');
respAddBlobValue(xxPtr: %ADDR(xxBlob): %LEN(%TRIMR(xxBlob)));