pdalcol / Zippex

Native Apex Zip library for Salesforce.com
MIT License
143 stars 108 forks source link

Apex CPU time limit exceeded #24

Open developerajain opened 7 years ago

developerajain commented 7 years ago

I am getting CPU time limit exceeded error when i am try to getFile in a loop.

sampleZip = new Zippex(EncodingUtil.base64Decode(/*Some zip file*/));
sFileNames = sampleZip.getFileNames();
for(String fileName : sFileNames){
     if(fileName.endsWith('.xml')==false){
           Blob myBlob = sampleZip.getFile(fileName);
           if(String.isBlank(myBlob.toString())){
                  containedFileNames.add(fileName);
           }
     }
}
manmeetitsme1987 commented 6 years ago

Is there any update on it? I am getting the same issue.

msanty commented 6 years ago

me too.

dawigood commented 5 years ago

Same issue, when the file size gets larger

bhushanpatil21 commented 5 years ago

Same issue

hashmatrai commented 4 years ago

Any solution , facing the same issue "Apex CPU time limit exceeded".

Oluwaseun-Smart commented 4 years ago

I'm having the same issue as well

jitendra-singh-developer commented 3 years ago

if anyone find the solution of this problem please share with us.

ALevchukTechIn commented 3 years ago

I'm having the same issue as well

wnisidozi commented 2 years ago

I'm having the same issue. One workaround that I found is to use WinRar and compress the zip file with "Compression Method" = "Store" image

Maybe we got the "Apex CPU Time limit exceeded" because Windows compile the .zip as ZIP64 (I'm not an expert, so this is just a guess) and request more processing from Apex