Hi,
I have an HTTP Request node successfully bringing in the data that is the contents of a PDF (according to that vendor's API). The data successfully arrives as a Buffer.
What I need to do now is create a PDF from the buffer.
So I connected a Write file node to take the buffer (msg.payload) from the HTTP Request node, but I am not understanding what encoding should be used. I have tried: default, utf8 base64 binary and through they each create a PDF file, the PDF is not valid. It seems that I am misunderstanding this process.
In node, you can write a buffer to a file without encoding. In Node-Red, I need to use the Write file node because this flow is going to be published on FlowForge Cloud which doesn't allow writes to the OS and has a modified Write file node, specific to their environment.
Any tips would be appreciated.