API returning PDF - how to save?

Custom Code

I'm using an API that when I send it an ID of a PDF file it returns the PDF.

There aren't many details in the documentation and that's why I'm unsure about how to save. Interestingly, I used Postman and Hoppscotch and as a result of the API they both showed me the PDF.

I would like to save this PDF: I want it to be downloaded in the browser (the application will be web). Please, can you help me?

What have you tried so far?

I tried to find out if the code comes as Base64 but I couldn't find that information.

The return header just says:

application/pdf

And in the RAW tab, a code is displayed exactly when we open a PDF in Notepad.

Part of the API documentation says that they always compress the return but the FF documentation says that HTTP operations always have decompression. So I don't think that's the problem.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
3 replies