Returns an array byte with the indicated size.
1 byte.array
<byte.array>
<cols /> !
<fill /> *
</byte.array>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecols | integer | Number of columns from array byte to return. | |||
Efill | integer | Element with which the array byte to return will be filled. |
Returns | |
---|---|
Type | Description |
Byte[] | Returns the created array byte. |
Exceptions
required attribute 'cols' not defined
The attribute ‘cols’ has not been specified.
java.lang.NumberFormatException: For input string: [...]
The indicated value is not of numeric format.
Example
Create an array of 80 columns.
Copy
<xsql-script name='test_byte_base64_encode'> <body> <set name = 'array'> <byte.array cols='80' fill='2'/> </set> <println><byte.length><array/></byte.length></println> </body> </xsql-script>
The result is:
Copy
80