Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

XSJS - Zip file download using $.util.Zip

$
0
0

Hi ,

 

      I'm trying to create a zip file in the server. Zip file will contain XML files.

 

var zip = new $.util.Zip();

 

zip["test.xml"]="<xml ...> <body>........</body></xml>";

 

$.response.status = $.net.http.OK;

$.response.contentType = "application/zip";

$.response.headers.set('Content-Disposition', 'attachment; filename = \'Encrypted.zip\'');

$.response.setBody(zip.asArrayBuffer());

 

On client side, I receive some encrypted content in the response.

How to handle the response in the client side?


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>