How to correctly download binary files (e.g., PDFs) using HTTP Request in the latest n8n version?

I’m trying to download a PDF file from a private Slack URL using the HTTP Request node. Authentication with a Bearer token works, but the output is corrupted (text with random characters) instead of proper binary data.
In the current n8n version, there is no option to set the response type to “binary” in the HTTP Request node.
How can I correctly download and handle binary files like PDFs?



Add this option to the http request node.

BTW, you could also separate your Authorization: Bearer {token} into a credential item so you don’t have to remember to mask it, and you can reuse it in multiple places.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.