core.medplumclient.download
Home > @medplum/core > MedplumClient > download
MedplumClient.download() method
Downloads the URL as a blob. Can accept binary URLs in the form of Binary/{id}
as well.
Signature:
download(url: URL | string, options?: MedplumRequestOptions): Promise<Blob>;
Parameters
Parameter | Type | Description |
---|---|---|
url | URL | string | The URL to request. Can be a standard URL or one in the form of |
options | (Optional) Optional fetch request init options. |
Returns:
Promise<Blob>
Promise to the response body as a blob.