I want to deflate a file using deflate stream.
Below is the code I am using.
using (oZipper = new DeflateStream(outputFile, CompressionMode.Compress))
Where oZipper is a filestream.
When I step into the line of code above (using (oZipper...), an exception is thrown:
Base stream is not writeable, InvalidArgumentException. Parameter: stream (outputFile, which is a filestream).
Any idea why this is? My code seems to be fine and I'm passing in the right stuff.
Thanks