on 10-29-2015 7:02 AM
Hi Ashwin,
Hope your doing good.
If your accepting the browser using xsjs and calling hana procedure/view to obtain result in text file format, you can make use of server side javascript utilities API to gunzip the obtained result and pass it as response to output (UI).
below is the sample XSJS code while utilizes the gzip utilities API.
var zip = new $.util.Zip();
zip["first_entry"] = "some result";
$.response.status = $.net.http.OK;
$.response.contentType = "application/zip";
$.response.setBody(zip.asArrayBuffer());
Please follow the link below for more info on zip utlity.
Using the Server-Side JavaScript APIs - SAP HANA Developer Guide for SAP HANA Studio - SAP Library
Regards,
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.