Bz2 Decompression in C #

I need an example of how to unzip a bz2 file. I upload the file through the control flow in the SSIS package, I would like to run the Script task using some C # code to unpack the downloaded bz2 file. It doesn't look like the decompress library that comes with .net is handling bz2 files. Can someone show me an opportunity that could do this? or direct me to the example of unpacking the bz2 file to the specified folder?

+6
source share
2 answers

7-zip comes with bzip2 support (and many other formats) and a C # shell.

+3
source

SharpZipLib is what you are looking for.

#ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar, and BZip2 library written entirely in C # for the .NET platform.

+9
source

Source: https://habr.com/ru/post/892838/


All Articles