Decoding gzip response data using Javascript.

Options

Has anyone built a custom connector in the DOMO IDE where the response data from the API was encoded with the gzip compression algorithm? Is there a way to decode the gzip algorithm in the DOMO IDE? Thanks.

Tagged:

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    There isn’t a simple way to ungzip the data coming back within the connector ide and domo doesn’t allow for external packages for security reasons. You’d likely need to write your own gzip function based off an existing gzip package

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    There isn’t a simple way to ungzip the data coming back within the connector ide and domo doesn’t allow for external packages for security reasons. You’d likely need to write your own gzip function based off an existing gzip package

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • benashifrin
    Options

    Thank you Grant, considering how common gzip is used online, there should be built in functionality for this. Re-writing a decompression algorithm in JS is overkill.