From Xojo Documentation


Decodes a Base64 string back to its original form.


result = DecodeBase64(str [, encoding])

Part Type Description
result String The decoded value of str.
str String The Base64 String to be decoded.
encoding TextEncoding Optional: The text encoding of the passed string.

If you pass an encoding, is has the same effect as calling DefineEncoding on the returned String.


The DecodeBase64 function performs the reverse operation of EncodeBase64. An encoded string passed to DecodeBase64 returns the original string.

Sample Code

The following code decodes a string back into ASCII:

Var encoded, decoded As String
encoded = EncodeBase64("How now brown cow.", 0)
decoded = DecodeBase64(encoded)


See Also