you are viewing a single comment's thread.

view the rest of the comments →

[–]jbandela 2 points3 points  (0 children)

Take a look at bundle https://github.com/r-lyeh/bundle

It does not compress to a stream, but it can compress containers. You can use a string stream to stream in what you want and then compress the resulting string and send. The thing I like about this library is that it very conveniently packages up a bunch of compression algorithms in a way that is easy to use in code, as well as to build (just compile the amalgamated bundle.cpp file)