when I create a zip file to a seekable stream that contain some content,the zip content overrides the original content
yinyue200 opened this issue · 5 comments
English is not my native language; please excuse typing errors.
Thanks
I don't think I understand what you mean on this one. What do you mean "orderless stream?"
@adamhathcock it means zip content overrides the original content
That sounds like a desired behavior. You might need to give me a code sample.
using (var file = System.IO.File.Create("D:\\a.zip")) { var bt=System.Text.Encoding.UTF8.GetBytes("https://github.com/adamhathcock/sharpcompress/issues/244"); file.Write(bt,0,bt.Length); using (var zw = new SharpCompress.Writers.Zip.ZipWriter(file, new SharpCompress.Writers.Zip.ZipWriterOptions(SharpCompress.Common.CompressionType.Deflate))) { zw.WriteToStream("a",new SharpCompress.Writers.Zip.ZipWriterEntryOptions()).Dispose(); } }
And the file will not start with the URL.
@adamhathcock
Thanks for finding this. It was a bug introduced with the Zip64 writing support.