binaries
fromBase64(string value)
Converts value
from base64.
Example
DataSonnet map:
ds.binaries.fromBase64("SGVsbG8gV29ybGQ=")
Result
"Hello World"
fromHex(string value)
Converts value
from hexadecimal.
Example
DataSonnet map:
ds.binaries.fromHex("48656C6C6F20576F726C64")
Result
"Hello World"
readLinesWith(string value, string encoding)
Reads value
with the specified encoding encoding
.
Example
DataSonnet map:
ds.binaries.readLinesWith("Hello World", "UTF-8")
Result
["Hello World"]
toBase64(any value)
Converts value
to base 64.
Example
DataSonnet map:
ds.binaries.toBase64("Hello World")
Result
"SGVsbG8gV29ybGQ="