LZip ???? ??

Contents
[ Hide Show ]

??

Lzip ????? Linux?? ??????. LZMA ????? ?????. .NET API? Aspose.ZIP? ???? ?? ?? ?????? ??? ???????? Lzip ????? ???? ??? ? ????.�Aspose.ZIP API? ??? ???? ??? ?? LzipArchive ???? ?????. ? ???? ????? ?? ??? ???? ?? ??? ?????.

?? ??

?? ?? ????? LzipArchive ????? ???? ??? ???? ??? ?????.

1    using (LzipArchive archive = new LzipArchive())
2    {
3        archive.SetSource("data.bin");
4        archive.Save("data.bin.lz");
5    }

Lzip ???? ??

??? ??? ?? ??? Lzip ????? ?? ??? ?????.

 1    using (FileStream sourceLzipFile = File.Open("data.bin.lz", FileMode.Open))
 2    {
 3        using (FileStream extractedFile = File.Open("data.bin", FileMode.Create))
 4        {
 5            using (LzipArchive archive = new LzipArchive(sourceLzipFile))
 6            {
 7                archive.Extract(extractedFile);
 8            }
 9        }
10    }

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.