Convert to Base64
Jump to navigation
Jump to search
Problem
Encode a String to Base64.
Solution
Convert to ByteArray and then encode using #base64Encoded:
'Hello World' asByteArray base64Encoded. "=>" 'SGVsbG8gV29ybGQ='