The task itselft isn’t new. Just the plugin to do it. Zipping and unzipping files from whithin 4D. Here is the documentation and download.
[amazon_image id=”0471952478″ link=”true” target=”_blank” size=”medium” ]Data and Image Compression: Tools and Techniques[/amazon_image]