Share feedback, ideas and get community help

Updated 6 months ago

It's possible to use "Buffer" and "toString" on the script block?

I need to do something like that:
let file = Buffer.from(response).toString('base64');
Attachment
image.png
B
D
10 comments
It's not working?
Unfortunately isn't working, every time i run got this message "An error occurred, Buffer is not defined"
Attachment
image.png
Nah indeed, the sandboxed code environment does not have the Node.js built ins like this... It's a limitation
What are you trying to achieve?
I'm trying to transform some information into base64 and then transform it into a PDF to send to the end customer
This information comes via API(htt request) that I have already managed to configure
got it, do you know some other way to do it?
I should implement a block that converts a text content into a file and provides a URL
thanks, this will really helpful
Did you do this implementation?
Add a reply
Sign up and join the conversation on Discord