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

ParameterTypeDescription
arrayBufferArrayBufferThe input array buffer.

Returns:

string

The base-64 encoded string.