Common
#
toBase64app.common.toBase64(options)
- Is used to convert image files to base64 string.
note
This will work only for image files.
Params
Param | Description |
---|---|
options | Download 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});