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