Is possible to decompress files .tar.gz

Hi,

Can you try the following sample?

Using  tgzStream = System.IO.File.OpenRead(tgzFile)
Using gzStream = New ICSharpCode.SharpZipLib.GZip.GZipInputStream(tgzStream)
     Using tarArchive = ICSharpCode.SharpZipLib.Tar.TarArchive.CreateInputTarArchive(gzStream) 
         tarArchive.ExtractContents(outFolder)
   End Using
End Using
End Using

Sample
Sample20231122-8.zip (10.6 KB)

Regards,

1 Like