In Linx you can convert a string to and from Base64 by using an expression.
To convert to Base64 the string must first be converted to a list of bytes (List), then the list of bytes can be converted to Base64. In the expression editor it will look like this:
MyString.ToBytes().ToBase64()
We must reverse this process to convert from Base64 back to a normal string. In the expression editor it will look like this:
MyString.ToBytesFromBase64().ToString("Default")
The attached solution contains two functions that will assist with Base64 conversation. Copy them into your Linx Solution and use them.
ConversionToBase64.zip (2.6 KB)
The functions are as follows:
- ConvertToBase64: Will convert an input string to a Base64 string
- FromBase64ToString: Will decode a Base64 string