Hello !
I’m looking for the expression to retrieve the pdf file created on the previous node and pass it to the http request parameter named “content” (see image below). Do you have an idea?
Thanks in advance for your help.
Hello !
I’m looking for the expression to retrieve the pdf file created on the previous node and pass it to the http request parameter named “content” (see image below). Do you have an idea?
Thanks in advance for your help.
It looks like your topic is missing some important information. Could you provide the following if applicable.
Hey @elpistoler , If you are using the JSON body parameters to send the binary, you are likely have to submit base64 encoded text representation of the file.
Having said that, perhaps you need a different format of the HTTP request. For sending binaries, Form Data format us typically used.
Thanks for your answer.
I can POST
data using either: Content-Type: application/json
or Content-Type: application/x-www-form-urlencoded
.
There is no way I can access data through json ?
Hey @elpistoler , according to your screenshot, your data is a binary PDF file. That is why it makes total sense to POST it as such if the API accepts such data.
If that is not an option (which seems to be the case according to your last comment), why did you convert you data to binary in the first place?
It appears that you need a different representation of the data and I mentioned already that your data would have to be textual instead. You still can convert binary to textual representation (to be available via json
). You can use Extract from File node for that, which by the way has many sources to be converted to text from including PDF, HTML, etc. Here’s an example demo converting binary PDF to text format.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.