Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Uint8Array.prototype.toBase64()

2 tags 1 category

The toBase64() method of Uint8Array instances returns a base64-encoded string based on the data in this Uint8Array object.

This method should be preferred over Window.btoa(), especially if you already have a Uint8Array holding the object, because you don’t need to convert it to a string first.

Return value: A base64-encoded string representing the data in the Uint8Array.

Parameters: options An object customizing the base64 string format. It can contain the following properties: alphabet A string specifying the base64 alphabet to use. It can be one of the following: “base64” (default) Encode input with the standard base64 alphabet, which uses + and /. “base64url” Encode input with the URL-safe base64 alphabet, which uses – and _. omitPadding A boolean specifying whether to omit padding characters (=) at the end of the base64 string. The default is false.

Syntax example: toBase64()

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…