Skip to Content
avatar image
Former Member

Content-Encoding configuration in HANA

Hi All,

I have my application on HANA system. I make a request from browser and the response is in simple text or javascript file without any compression.

What configuration do I have to make so that the response from HANA is compressed (Gzip or Deflate).

I am using SPS8 system.

Thanks in Advance.

scn_forums.png (49.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 29, 2015 at 08: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";


    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



    Add comment
    10|10000 characters needed characters exceeded