MrPapiro
MrPapiro
TTypebot
Created by MrPapiro on 4/22/2025 in #help-and-questions
Atob javascript function on server side?
I need to convert a base64 encoded string to a pdf file. In typebot I use a node with javascript code (run code and set the result into a variable with this pdf file content). The question is: In conversion I have to use the javascript atob function. This function only works when I select the code to run on client side (select client toggle option). Problem: it occurs that my code can not run (be executed) on the client side. Which function could I replace this atob funtion to get the same result? I tried to use Buffer, but it had the same problem (only runs on the client side). In sumarize: I have a string base64 and want to send the pdf file to the client zap (using cell phone). I need to generate the pdf file and return to Evolution-API to send the file to the client (that's why i can not run the code on the client side). Any suggestions how could I get the aimed result?
2 replies