Skip to main content
Jun 18, 2020 8:27 AM UTC
Question

Zip file using rest services

I need a custom services to hit external API which provides ZIP File (contains pdfs files) as response and display those pdf files in mashup.

@PaiChung 

4 replies

Jun 18, 2020 12:52 PM UTC

I've never done this, but there is a LoadBinary service in the contentloader functions, you can try that and then save that to the filerepository as zip, and then use the unzip command on the filerepository

after that do a getfilelisting to display the link in a webframe widget.

Jun 23, 2020 5:58 PM UTC

@PaiChung 

 

i tried LoadBinary service in the contentloader functions and saved the response as zip file. But zip file not saved properly. i suspect issue in receiving binary response. 

 

Can you share sample code to receive zip file as binary response?

 

Regards, 

Vijay

Jun 23, 2020 8:23 PM UTC

Sorry I do not have any code example.