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?