Skip to main content
1-Visitor
June 18, 2020
Question

Zip file using rest services

  • June 18, 2020
  • 1 reply
  • 1553 views

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 

1 reply

22-Sapphire I
June 18, 2020

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.

1-Visitor
June 23, 2020

@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

22-Sapphire I
June 23, 2020

Sorry I do not have any code example.