1
Vote

File error with CompressStreamDictionary with large stream

description

I have a problem that when i try to compress a large memory stream (~ 3MB).
When i save the file as a 7z the file is correct.
When the ArchiveFormat is Zip the resulting achive file can not be opend with winrar or windows. (it is working when i use a small file)
 
Attached is example program to test it.

file attachments

comments

pvisser_es wrote Jan 5, 2012 at 10:35 AM

Found my error.

i should have used MemoryStream.ToArray instead of MemoryStream.GetBuffer

wrote Feb 22, 2013 at 1:16 AM