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

#SalesforceSpring25 – Compress and Extract Zip Files in Apex (Generally Available)
by: asagarwal
blow post content copied from  asagarwal.com
click here to view original post


#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.

The post #SalesforceSpring25 – Compress and Extract Zip Files in Apex (Generally Available) appeared first on asagarwal.com.


February 21, 2025 at 09:10AM
Click here for more details...

=============================
The original post is available in asagarwal.com by asagarwal
this post has been published as it is through automation. Automation script brings all the top bloggers post under a single umbrella.
The purpose of this blog, Follow the top Salesforce bloggers and collect all blogs in a single place through automation.
============================

Salesforce