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
| Parameter | Type |
|---|---|
data | string |
Returns
string
