image or Image.fromBase64.
Constructors
Constructor
Parameters
data
ArrayBuffer | ArrayBufferView<ArrayBufferLike> | Blob
Returns
Image
Throws
data is empty or isn’t file bytes or a Blob.
Properties
data
Blob read when the request is sent.
type
Methods
toJSON()
JSON.stringify wherever the image appears in a request.
Returns
string
toString()
Returns
string
fromBase64()
Parameters
text
string
The image file bytes, base64-encoded, without a data: URL prefix.
Returns
Image
Throws
text isn’t valid base64 or decodes to no bytes.

