This procedure adds Blob 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 | |
---|---|---|---|
element | 30A VARYING, VARSIZE | Mandatory | Name of element |
fieldName | 30A VARYING, VARSIZE | Mandatory | Field name |
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';
respAddBlobField('data': 'myText': %ADDR(xxBlob): %LEN(%TRIMR(xxBlob)));