Convert to Base64: Difference between revisions
Jump to navigation
Jump to search
(imported material) |
(No difference)
|
Revision as of 20:09, 4 May 2025
Problem
Encode a String to Base64.
Solution
Convert to ByteArray and then encode using #base64Encoded:
'Hello World' asByteArray base64Encoded "=> 'SGVsbG8gV29ybGQ=' "