And in postman it downloads it as it should, and it displays it as a pdf file.
I would like to node to output the file as a file and not as a string.
Am I missing something?
Thank you,
Andrei
That’s the thing, I don’t wanna use a HTTP Request node, it’s a custom made node that gets a file as a response. I tried this " returnData.push(Buffer.from(responseData, ‘base64’))" in the node, but now I get this:
We can see here that http request node returns the file in the Binary form. Also, it is possible to download it and view it. How can we adjust our node to output the binary file correctly like the http request node?
you can use Move Binary Data node to convert the PDF (delivered as Text from your code) into a binary file. To make it downloadable you have to set a filename in addition to the binary data.