function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Zip File

I want to create ".Zip" file by APEX which can include other files like .jpg,.txt etc...




I dont think this is possible in apex.


ok Thanks for reply..

But can we try to make this possible with jscript ?

which we can add into visual force page ...
is it be a good idea ?

Pedro I Dal ColPedro I Dal Col
You can create Zip files in Apex using Zippex. It's an open source Zip library. You can download it here:
hi pedro , i have gone through the github but while converting the files to .zip using zippex it throws CPU time limit error . how can i overcome this problem?
Pedro I Dal ColPedro I Dal Col
Manid, this is a platform limitation. You can try using asynchronous mode (queueable/batch/future) to get a larger CPU limit. In future mode you can also use @future(limits='3xCPU') to get even larger limits.