External API returns binary PDF bytes - How to save to file system?

I am making a call to an API service that returns a PDF as “binary PDF bytes”. The documentation goes on to say “Make sure you save the response to PDF as binary data.”

My test code is writing blank PDFs so I think there is an issue.

I cannot find any documentation on what the “file content” input is expecting.

Thanks,
Tim

I believe the following block would work better for you (make sure to select “bytes” in the dropdown):

@mark-piller

You got me on the right track. In in the end I just changed the encoding of the http/s block and it worked -

Thank you!