Jan 29, 2014 at 4:58 AM
Edited Jan 29, 2014 at 5:27 AM
I'm using latest version of DotNetZip(v 1.9)
While creating zip file from a stream (memory stream), the resultant zip file generated cannot be extracted. I tried the default extract mechanism in windows as well as third party application like Winrar. But an bad exception is thrown 'get 0x80004005 Unspecified
Following is the code I used.
using (ZipFile zipFile = new ZipFile())
memoryStream = new MemoryStream();
The 'mstream' is a byte array. The data in mstream is valid, as I had already checked the content of it by writing to a file.
The reason why I saved the zip to another memoryStream(a MemoryStream) is for using it for creating an attachment of a mail.