There is a zip file that is created using the gateway assertions. That zip file needs to be converted into a binary format.
API Gateway: 9.4
You can use the Encode/Decode Assertion to do this conversion. The assertion should look something like the following:
In the attached sample policy (zip2bin.xml):
+ Route via SSH2 Assertion that grabs a ZIP file from the gateway server; the ZIP file is stored in the ${response.mainpart} context variable
+ Encode/Decode Assertion
+ Return Template Response to Requestor assertion that displays the binary format