#SalesforceSpring25 [Tip 24] - 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
References & Useful URLs
For Related Spring ’25 Release Note Article & Sample Code – Click Here
Found this tip helpful? Click ❤️ to let us know! Your feedback helps us create more tips like this that matter to you.