New Post: ZipX files
adamhathcock wrote: 2) Yes. The idea with streaming is that everything is done on the fly in a forward-only stream of bytes. You ought to be able to chain the output of a a current entry on a ZipReader...
View ArticleNew Post: ZipX files
simmotech wrote: Now I've read a bit more about the structure of ZIP files, I am under the impression that the directory of entries is stored at the end of the stream. How can the chaining you describe...
View ArticleNew Post: Problem with Unknown Header (and possible fix)
I think you're on to the fix. Looks like I misnamed and forgot to check for certain headers. The Zip64 headers should just be ignored. I use this for the zip specification:...
View ArticleNew Post: ZipX files
OK, I see how a forward-only stream just uses the local headers rather than the trailing full directory. I had a look at the AbstractReader.Skip() code which appears to be opening the compressed stream...
View ArticleNew Post: ZipX files
Skip could be optimized for Zip as you said. I just haven't done it. Not all (at least if I'm remembering correctly) formats can necessarily do that so I only have the generic unoptimized solution.
View ArticleNew Post: ZipX files
Not as easy as it looks! At the point I wanted to try a real skip, I have this level of stream nesting! VolumeStream RewindableStream NonDisposingStream DeflateStream ZLibBaseStream ReadOnlySubStream...
View ArticleNew Post: ZipX files
Might have to expose a raw stream property or method that sits next to entry stream that won't try to decompress anything. I may have been paranoid and put too many NonDisposingStreams in places :)
View ArticleNew Post: ZipX files
adamhathcock wrote: I may have been paranoid and put too many NonDisposingStreams in places :) ZipHeaderFactory might be one such place. It tries to reuse an existing RewindableStream but if it is...
View ArticleNew Post: ZipX files
I managed to work out a proof-of-concept hack to manually skip the compressed bytes. The hack doesn't allow multi-nesting of zips (I don't know how reuse the existing forward-only stream for...
View ArticleNew Post: ZipX files
I managed to get the multi-level nesting of .Zip files to work. One problem I had was a file that was marked as Encrypted for some reason and was throwing an exception because no password was supplied....
View ArticleNew Post: ZipX files
Sounds like you figured out some good stuff :) What is the easiest way for me to get your changes? I have been thinking about moving this project to github as it is much easier to be collaborative with...
View ArticleNew Post: ZipX files
Well my changes were just a proof of concept, not releasable code. For example, I just commented out the first section in ZipHeaderFactory,LoadHeader just so it would skip throwing an exception for an...
View ArticleNew Post: WinRT / Metro support
Hi, I built the Windows Phone 7 project and include the dll in my Windows Store App but I've got a API error in the Windows App Certification Kit (WACK) : API...
View ArticleNew Post: WinRT / Metro support
In Version 0.9, I changed the project layout and added a WindowsStore assembly. I'm also playing around with a WinMD project.
View ArticleNew Post: RarReader Entry CRC issue
I seem to be having an issue with the entry CRC property. Before calling reader.WriteEntryToDirectory, reader.Entry.Crc is incorrect. After calling reader.WriteEntryToDirectory, reader.Entry.Crc is now...
View ArticleNew Post: RarReader Entry CRC issue
The CRC is only loaded as the file is written. It's expected behavior at the moment.
View ArticleNew Post: EntryStream Position and Lenght Exception
Hi, For my application, I don't need to write the files into an output directory/file (as I saw in all your examples), I just need to read the current file into a string/xml and process it. Because I...
View ArticleNew Post: EntryStream Position and Lenght Exception
Rather than do that with a byte array, make a MemoryStream then use CopyTo from the EntryStream. Then get the byte array from the memory stream. For reading that text, you can use a StreamReader...
View ArticleNew Post: EntryStream Position and Lenght Exception
Yes, it worked just fine with MemoryStream. Thanks!
View Article