Question

Can anyone explain this?

enter image description here

Was it helpful?

Solution

when you close the GZip stream, it's closes the underlying file stream, the exception is thrown because you already closed the file stream. you don't need to close both of them, just close the gzip stream

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top