Skip to main content

Function: base64FromBytes()

base64FromBytes(bytes): string

Base64-encodes raw bytes, chunked through String.fromCharCode.apply to avoid blowing the call stack on large arrays (spreading a 10MB+ typed array as individual arguments in one call throws "Maximum call stack size exceeded" in every JS engine).

Parameters​

bytes​

Uint8Array

Returns​

string