is there any native Salesforce Solutions available to convert a xml file as gzip compressed file?

We are trying to integrate with a 3rd party , which accepts a gzip compressed xml file and then converted into base64 format in their request body.


The setCompressed() method of the HttpRequest class appears to do just that (apply gzip compression to the request body).

From the documentation on HttpRequest

If true, the data in the body is delivered to the endpoint in the gzip compressed format. If false, no compression format is used.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.