My TCP Client receives a image within a packet.The image is compressed with zlib.The task is to decompress the image and put it on the form.
I\'m planning to save the co
In addition to what everyone else has already stated, I would also suggest you use 'using' clauses since all those objects implement IDisposable.
using(FileStream outFileStream = new ...)
using(ZOutputStream outZStream = new ...)
using(FileStream inFileStream = new ...)
{
CopyStream(inFileStream, outZStream);
}