Skip to main content

Common

toBase64#

app.common.toBase64(options) - Is used to convert image files to base64 string.


note

This will work only for image files.

Params

ParamDescription
optionsDownload image options.

Example

// using download urlconst downloadUrl = ‘https://<someurl>/image.png’;app.common.toBase64({url: downloadUrl});

// using file Idconst downloadFileId = 1234;app.common.toBase64({fileId: downloadFileId});
On This Topic