core.arraybuffertobase64
Home > @medplum/core > arrayBufferToBase64
arrayBufferToBase64() function
Converts an ArrayBuffer to a base-64 encoded string.
Signature:
export declare function arrayBufferToBase64(arrayBuffer: ArrayBufferLike | ArrayBufferView): string;
Parameters
Parameter | Type | Description |
---|---|---|
arrayBuffer | ArrayBufferLike | ArrayBufferView | The input array buffer. |
Returns:
string
The base-64 encoded string.