I need to compress messages to a remote server and decompress messages which I receive from it. The remote server is running Windows and uses gzip from the class IO.Compression.GZipStream. The program on the remote server isnt my code, but I've looked at it and this is what it's doing.

I am writing for Linux and will use zlib. I need to write compression and decompression which is compatible with Windows GZipStream. On my end, the information never needs to be read from or sent to a file. It will live its whole existence in variables.

Here is the question. Can I use zlib's deflate() and inflate()? Will they be compatible with Windows gzip?

Thanks.

Brandon