I require a functionality to compress a folder containing some images, pdf documents, some xml files, and a resource folder containing images. How can I do that? I came across the ByteArray.compress() method but I couldn't find a way to use it.
How can I solve this?
I want to zip the folders without using any third part libraries if possible.