Method
DecodeBase64
Description
Decodes a Base64 string back to its original form.
Usage
result = DecodeBase64(str [, encoding])
Part |
Type |
Description |
---|---|---|
result |
The decoded value of str. |
|
str |
The Base64 String to be decoded. |
|
encoding |
Optional: The text encoding of the passed string. |
Notes
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)
MessageBox(decoded)
Compatibility
All project types on all supported operating systems.
See also
EncodeBase64 function.