IWindow.Atob

IWindow.Atob method

Takes the input data, in the form of a Unicode String containing base64-encoded binary data, decodes it, and returns a String consisting of characters in the range U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF respectively, corresponding to that binary data.

public String Atob(String data)
ParameterTypeDescription
dataStringThe Unicode String containing base64-encoded binary data

Return Value

The String consisting of characters in the range U+0000 to U+00FF

Exceptions

exceptioncondition
dOMExceptionThrows an “InvalidCharacterError” DOMException if the input String is not valid base64 data.

See Also