Possible to give name to memorystream - revise


Hi markhor,
I'm using the CompressStream method and still getting the "defaut" filename in the zip file.
I'm currently using the latest version of SevenZipSharp and 7z.dll.
Please help and thanks for a fantatic work


markhor wrote Mar 14, 2010 at 3:01 PM

The following code works for me:
        var cmp = new SevenZipCompressor();
        cmp.DefaultItemName = "xxx";
        using (var sr = File.OpenRead(@"d:\Temp\ASP_Net_RibbonBar_Component_Contact.doc"))
            using (var sw = File.Create(@"d:\Temp\1.7z"))
                cmp.CompressStream(sr, sw);
I get the archive with "xxx" filename.

wrote Feb 22, 2013 at 1:16 AM