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