I need a zlib deflate compressed stream. In my implementation I must use a single stream over the entire session. during this session small chunks of data will be passed through the compressed stream. Everytime a chunk is passed it must be sent in compressed form immediately.
My first attempt was using DeflateStream but when I send the first chunk its compressed data wont appear until I close the stream.
Reading about zlib flush modes it appears as if there is one specific mode for what I need.
- Am I using the correct class(DeflateStream) for zlib deflate compression?
- How can I enable "sync flush" behavior?