#SalesforceSpring25 – Compress and Extract Zip Files in Apex (Generally Available)

#1MinuteTip #SalesforceSpring25 Use the Compression namespace and take advantage of a native Apex Zip library to compress and extract files.

Easily compress files into a Zip file from blobs and directly decompress files stored in a Zip file to blobs. Optimize compression by specifying the compression method and level.

You can compress multiple attachments or documents as an Apex blob in a Zip archive. You can also specify the data to extract from the Zip archive without uncompressing the entire Zip archive.

Product Area: Apex

Compress and Extract Zip Files in Apex

References & Useful URLs

  • For Related Spring ’25 Release Note Article & Sample Code – Click Here

Want to Receive these Tips in your Inbox?

Finding it overwhelming to keep pace with Salesforce’s new release features? Try our “1 Day 1 Tip 1 Minute” emails, where you are going to get 1 tip every day that won’t take more than a minute to read. To find out more and subscribe please click here.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top