This project is read-only.

NullReferenceException after 2nd Save

Oct 15, 2014 at 7:58 AM
Hi all,

regarding the article from April 2011 (Goto article) does anybody knows whether the problem is solved or not? Unfortunately I have the same problem and found no solution for this issue (using Ionic.Zip.dll

After uploading a ZIP file I must validate and manipulate the file in memory. Therefore I must execute the Save method to get the file into MemoryStream (to be able to use OpenReader()). To update the MemoryStream after changing the content I have to execute the Save method of the manipulated ZipFile object again but get the known exception.

I try to prevent using object copies in memory because of large uploaded files. A previous version already goes that way resulting in OutOfMemory exceptions.

Thank you for any hint.

Best Regards