This function performs the decoding of a base64 encoded string. The input string does not require base64Encode(). Any valid base64 encoded string can be passed for decoding.
The function has the following syntax:
base64Decode(sEncoded)
The function returns a string holding the decoded data. If an error occurs, for example, in case of malformed input data, the function raises an exception.
Specifies the string to decode.
Example
Decode a string with error handling:
try { ? base64Decode("SGVsbG8gV29ybGQh"); } catch(ex) { ? "Error decoding string" }
Copyright © 2013 CA. All rights reserved. |
|