This query function performs Base64 decoding of a field. When decoding,
characters outside the base encoding alphabet are ignored. The decoded
value is subsequently decoded as binary representation of a string
according to the charset
parameter, which defaults
to UTF-8. To work with actual binary data, use ISO-8859-1 character set.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | false | _base64Decode | Name of the field in which to store the decoded value. |
charset | string | false | UTF-8 | The character set to use when transforming bytes to string. Valid charsets are ISO-8859-1 , and UTF-8 . Validated type is java.nio.char set.Charset . |
field | string | true | The field on which to decode Base64 values. [a] | |
Examples
Decode the base64 value in encoded
and stores it in decoded
:
logscale
decoded := base64Decode(encoded)