Skip to main content

bytesToBase64() function

Encodes a Uint8Array to a base64 string representation with padding.

Signature:

export declare function bytesToBase64(b: Uint8Array): string

Parameters

Parameter

Type

Description

b

Uint8Array

the byte array to convert

**Returns:**

string