Reading and writing Zip files

suggest change




The ZipFile class lives in the System.IO.Compression namespace. It can be used to read from, and write to Zip files.


Exception | Condition ————————— | —— ArgumentException | The stream has already been closed, or the capabilities of the stream does not match the mode (eg: trying to write to a read only stream) ArgumentNullException | input stream is null ArgumentOutOfRangeException | mode has an invalid value InvalidDataException | See list below

When a InvalidDataException is thrown, it can have 3 causes:

All information has been taken from this MSDN page

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents