https://blog-qa.aspose.com/zip/create-gzip-file-in-java/
Create GZIP File in Java Programmatically