uploadResourceAsBlob(...)
uploadResourceAsBlob ( options : UploadResourceAsBlobOptions ) = > Promise < UploadResourceResult >
Upload a file to Cloudinary as a blob.
Returns: Promise<UploadResourceResult >
Since: 0.1.1
downloadResourceAsBlob(...)
downloadResourceAsBlob ( options : DownloadResourceAsBlobOptions ) = > Promise < DownloadResourceAsBlobResult >
Download a file from Cloudinary as a blob.
Returns: Promise<DownloadResourceAsBlobResult >
Since: 0.1.1
Prop
Type
Description
Since
assetId
string
The unique asset identifier of the uploaded resource. Only available on Android and Web.
0.0.1
bytes
number
The number of bytes of the uploaded resource. Only available on Android and Web.
0.0.1
createdAt
string
The timestamp at which the resource was uploaded.
0.0.1
duration
number
The duration of the uploaded resource in seconds.
0.1.5
format
string
The format of the uploaded resource.
0.0.1
height
number
The height of the uploaded resource.
0.1.4
originalFilename
string
The original filename of the uploaded resource. Only available on Android and iOS.
0.0.1
resourceType
ResourceType
The resource type of the uploaded resource.
0.0.1
publicId
string
The unique public identifier of the uploaded resource.
0.0.1
url
string
The url of the uploaded resource.
0.0.1
width
number
The width of the uploaded resource.
0.1.4
UploadResourceAsBlobOptions
Prop
Type
Description
Since
cloudName
string
The cloud name of your app which you can find in the Cloudinary Management Console.
0.1.1
resourceType
ResourceType
The resource type to upload.
0.1.1
blob
Blob
The file to upload.
0.1.1
uploadPreset
string
The selected upload preset.
0.1.1
publicId
string
Assign a unique public identifier to the resource.
0.1.1
DownloadResourceAsBlobResult
Prop
Type
Description
Since
blob
Blob
The downloaded resource as a blob.
0.1.1
Prop
Type
Description
Since
url
string
The url of the resource to download.
0.0.3
DownloadResourceAsBlobOptions
DownloadResourceOptions
Members
Value
Since
Image
'image'
0.0.1
Video
'video'
0.0.1
Raw
'raw'
0.0.1