Skip to Content
Aug 10, 2018 at 07:36 AM

How to write REST API response (in binary data) to zip file?

7288 Views Last edit Aug 13, 2018 at 02:20 PM 2 rev

Hi everyone!

I try to build DevOps for SAP CPI. I need to download iFlow to local computer for that. I sent API REST request'someId',Version='1.0.0')/$value and got the response in binary data. (content removed by moderator)

In headers I see Content-Type →application/zip. The data is zip file.

I need to write the response to file and unzip the file for browsing files inside.

Anybody knows who to get it in java or python?? Everytime when I try - I get corrupted archive