Is there any way to implement the below code in cloud function.
const { promisifiedRequest } = await app.executeFunction("utility");
let imageurl = app.data.image
app.getBase64Document = await function (url) {
return app.axios.get(url, {
responseType: 'arraybuffer',
dontRedirect: true
}).then(response => Buffer.from(response.data, 'binary').toString('base64'))
}
await app.fileRequest.get(app.data.image, async (error, response, body) => {