143
Views
6
Comments
Download File from API Response
Question
Application Type
Reactive
Service Studio Version
11.53.23 (Build 61527)

Hello All,


How can we download a file from API response below is the response body which I couldnt convert and download. File type might be anything .xlsx, .PDF, .docx, .txt.

With this resposne I'm able to download the actual file from Postman, but not in outsystems flow. How to decode this and dowload the acutal file. 

Regards,

Vinod

2022-08-03 04-32-50
Ravi Punjwani

Hi Vinod,

You can certainly do that, you might need to prepare the response object correctly.

Are you able to share the application OML file so I can test and suggest you any workaround?

2021-12-28 07-54-40
Harini R

Hi all,

How can we download a file from Lifetime API response below is the response body which I couldnt convert and download. File type might be .oap.

And how to download the actual file type from postman? Thanks in advance. 


Thanks,

Harini


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

The API describes the type of output parameters. I would think that if a file is sent in the body, you need to specify an output parameter with type Binary and Send In = Body.

2021-12-28 07-54-40
Harini R

Hi Kilian,

Thanks for your reply. But can you explain in brief how to download the actual file from the API response in postman.


FYI, when I click and run this URL in postman, I get binary data in the response body as shown in below,


Please help me on this.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Harini,

This isn't a Postman forum, so please do not ask specific Postman questions. However, just use the "Save Response" link and choose "Save to file".

EDIT: I just saw Piyali also gave this answer, below.

2023-05-08 05-34-05
Piyali Saha

Hi Vinod Kumar R.

You can save the response of the API by clicking on save response> save to a file. This will give you a file in json format of response data.

Hope this will help you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.