getBlob Method


getBlob(name)

Get the value of a blob property by name.

getBlob(name: string): undefined | Uint8Array

@returns the property's value if it exists and is a blob, undefined otherwise.

Parameter Type Description
name string  

Returns - undefined | Uint8Array

the property's value if it exists and is a blob, undefined otherwise.



getBlob(name, defaultValue)

Get the value of a blob property by name.

getBlob(name: string, defaultValue: Uint8Array): Uint8Array

@returns the property's value if it exists and is a blob, otherwise the supplied default value.

Parameter Type Description
name string  
defaultValue Uint8Array  

Returns - Uint8Array

the property's value if it exists and is a blob, otherwise the supplied default value.


Defined in

Last Updated: 17 December, 2024