fetchImageAsBlob

Function

Given a url to an image, return it as a blob

  • fetchImageAsBlob(url: string, options: RequestInit) : Promise<Blob>

Parameters

Parameter Type Default Notes
url Required string

Url to fetch the image from. Must have token if it's a non-publi item resource url

options Optional RequestInit {}

additional optinos

Returns

Promise<Blob>
Property Type Notes

Function defined in common/src/resources/fetch-image-as-blob.ts:6