Base64 encoding and decoding.
decode
($base64 as base64Binary) as string external
Decode a base64Binary. |
decode
($base64 as base64Binary, $encoding as string) as string external
Decode a base64Binary. |
encode
($string as string) as base64Binary external
Encode a string as base64Binary. |
declare function base64:decode($base64 as base64Binary) as string external
Decode a base64Binary.
The function assumes that the content after decoding is valid UTF-8.
declare function base64:decode($base64 as base64Binary, $encoding as string) as string external
Decode a base64Binary.
The function assumes that the content after decoding has the given encoding.
declare function base64:encode($string as string) as base64Binary external
Encode a string as base64Binary.