function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jon Sheldon 42Jon Sheldon 42 

How to GZip compress xml?

I am integrating with an external partner and I need to be able to GZip compress an XML string.  This is NOT part of a web service or API, so GZip support for HttpRequests is not relevant here.  Nor is this for getting a ZIP file.

I don't see any classes which support GZip compression of a string or blob.  EncodingUtil supports Base64 encoding, hex encoding, etc.

Is there a preferred third party API or product that supports this?