As the title suggest. We need to process zip file in Apex code to perform some tasks which are completely depend on Zip file.
Because the data is confidential so we don't want is to process on client side. So is there any way to process Zip file in Apex? Some library or custom approach we could use. Also I have a doubt that if Zip file can be processed, will it within the governor limit of Salesforce?
I have searched everywhere but couldn't found any solution. Any help will be appreciated.
Attribution to: Ashwani
Possible Suggestion/Solution #1
You can do this natively in Apex using the Zippex library which is open source. https://github.com/pdalcol/Zippex
Attribution to: Pedro Dal Col
Possible Suggestion/Solution #2
Check out this blog post from Andrew Fawcett - this utilises the built in zip handling that Salesforce provides for static resources:
http://andyinthecloud.com/2012/11/04/handling-office-files-and-zip-files-in-apex-part-1/
Attribution to: Bob Buzzard
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34873