^string:base64[encoded]
^string:base64[encoded;$.strict(true)] [3.4.2] Note: this is method, not a constructor! Decodes a string from Base64 representation. To encode a string use
^string.base64[]
If option $.strict(true) is specified the exception will be raised if all characters can not be decoded. Without this option the only charachers that are decoded successfully are returned.[3.4.2]
Example $encoded[
pyAxOTczLiBUaGVyZSBhcmUgcnVtb3VycyB0aGF0IJNHcmVlbiBzbGVldmVzlCB3ZXJlIHdyaXR0
ZW4gYnmF
]
$original[^string:base64[$encoded]]
$original
Outputs…
§ 1973. There are rumours that "Green sleeves" were written by…