Skip to content

Function: btoa() ​

ts
function btoa(data): string;

Defined in: types/desktop-engine.d.ts:4999

Encodes a string of bytes (characters 0 to 255, e.g. from String.fromCharCode) in Base64. Throws an "InvalidCharacterError" DOMException for other characters: encode text to UTF-8 bytes with TextEncoder first

Parameters ​

ParameterType
datastring

Returns ​

string

The SDK is released under the Apache License 2.0