3

I am doing SF integration With Power Bill. In the response i am getting a gzip file with encoding-format: application/x-gzip. I want to decompress this file into Sf but not able to find any solution. I also tried various Javascript solution like pako, jszip and many other also.

I also tried to save this file in attachment as zip and then try to parse still don't get any success. Does anybody know here how can i decompress this file in Apex or in Javascript. Please let me know thanks.

  • Was there an issue with the solution referenced here – Developer Wonk Oct 2 '15 at 13:10
  • @DeveloperWonk thanks for the link but it supports only zip file but i am getting gzip file in response. – Tushar Sharma Oct 2 '15 at 13:33
  • 1
    CloudConvert has an API. You may be able to send the gzip response through their API and convert to Zip. – Developer Wonk Oct 2 '15 at 16:27
  • @DeveloperWonk yes but it will not work in my case. It will give download url and i want the file in the response. – Tushar Sharma Oct 3 '15 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.