Log in
Log into community
Share feedback, ideas and get community help
View all posts
Related posts
Did this answer your question?
😞
😐
😃
Powered by
Hall
Inactive
Updated 6 months ago
0
Follow
It's possible to use "Buffer" and "toString" on the script block?
It's possible to use "Buffer" and "toString" on the script block?
Inactive
0
Follow
D
DárioLopes
6 months ago
·
I need to do something like that:
let file = Buffer.from(response).toString('base64');
Attachment
B
D
10 comments
Share
Open in Discord
B
Baptiste
6 months ago
It's not working?
D
DárioLopes
6 months ago
Unfortunately isn't working, every time i run got this message "An error occurred, Buffer is not defined"
Attachment
B
Baptiste
6 months ago
Nah indeed, the sandboxed code environment does not have the Node.js built ins like this... It's a limitation
B
Baptiste
6 months ago
What are you trying to achieve?
D
DárioLopes
6 months ago
I'm trying to transform some information into base64 and then transform it into a PDF to send to the end customer
D
DárioLopes
6 months ago
This information comes via API(htt request) that I have already managed to configure
D
DárioLopes
6 months ago
got it, do you know some other way to do it?
B
Baptiste
6 months ago
I should implement a block that converts a text content into a file and provides a URL
D
DárioLopes
6 months ago
thanks, this will really helpful
D
DárioLopes
4 months ago
Did you do this implementation?
Add a reply
Sign up and join the conversation on Discord
Join on Discord