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.

asstringfalse_base64DecodeName of the field in which to store the decoded value.
charsetstringfalseUTF-8The 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.
fieldstringtrue The field on which to decode Base64 values.


Decode the base64 value in encoded and stores it in decoded:

decoded := base64Decode(encoded)