HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

btoa

Description

The btoa of WindowOrWorkerGlobalScope for JS takes the input data, in the form of a Unicode string containing only characters in the range U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF respectively, and converts it to its base64 representation, which it returns.

Throws an "InvalidCharacterError" DOMException exception if the input string contains any out-of-range characters.

Syntax

result = self.btoa(data)

Parameters

data

An any type.

Examples

1 · data