Syntax 2 Convert a string or a byte array to a blob
Description
Converts a string or an array of bytes to a blob datatype.
Syntax
|
1 |
<span>Blob</span> ( <span>array[ ]</span> ) |
|
Argument |
Description |
|---|---|
|
stringorbytearray |
An Any variable that holds a string or |
Return Values
Blob. Returns the converted string or
byte array in a blob.
Examples
This example saves an array of bytes as a blob, then
copies the contents of the blob to another byte array:
|
1 |
Blob lblb_1<br>Any a<br>byte lbyte_array[], lbyte_array2[]<br> <br>// initialize array<br>lbyte_array[] = {1,10,100,200,255}<br> <br>a = lbyte_array<br>lblb_1 = <span>Blob</span>(a)<br> <br>lbyte_array2[] = GetByteArray(lblb_1) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest