Converting ZIP to tar.gz

Tar.gz is by far the most widespread compressed archive format in the Linux world while ZIP is the most popular for Windows. If you want to convert a ZIP archive to tar.gz read this article.


Aspose.ZIP API provides the SaveGzipped method to compress a tar archive on the fly.  We can extract an entry from the ZIP archive to memory without saving it into intermediate storage and pass it into the tar archive right away.

Transfer an Entry

The following code example demonstrates how to extract entries from the ZIP archive and immediately put them to the tar.gz archive. Entries that are directories are skipped, but their files are added respecting relative paths.