ZipSupport In Apex
The ZIP Support (Developer Preview) feature is currently available as a Developer Preview. You can create and extract ZIP archive files using the classes and methods in the Compression namespace. However, this feature is not yet generally available unless Salesforce announces its general availability in documentation or public statements. Features, commands, and parameters may change or be removed at any time without notice. Salesforce recommends avoiding the use of compression methods in a production environment. With this feature, you can compress multiple attachments or documents into an Apex blob that contains the ZIP archive. You can also extract specific data from the ZIP archive without having to uncompress the entire archive. To optimize compression, you can specify a compression method and compression level. This feature is available in scratch orgs where the ZipSupportInApex feature is enabled. If the feature isn’t enabled, Apex code with this feature can be compil...