Skip to main content

core.arraybuffertobase64

Home > @medplum/core > arrayBufferToBase64

arrayBufferToBase64() function

Converts an ArrayBuffer to a base-64 encoded string.

Signature:

export declare function arrayBufferToBase64(arrayBuffer: ArrayBuffer): string;

Parameters

Parameter

Type

Description

arrayBuffer

ArrayBuffer

The input array buffer.

Returns:

string

The base-64 encoded string.