Returns an array byte with the indicated size.
 

1 byte.array

<byte.array>
    <cols /> !
    <fill /> *
</byte.array>

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