Jump to content

Compression over Network Stream

- - - - -

  • Please log in to reply
2 replies to this topic

#1
1gn1t0r

1gn1t0r

    Newbie

  • Members
  • Pip
  • 2 posts
I have some problems with compressing a network stream. I am kinda developing a compression proxy with the server compressing the data and then sending it to the client.

My problem is that I can't get the compression working. I have noticed that most popular methods wait for enough data to compress before sending it. As a result I can't flush the stream properly.

I have tried zlib, gzip and deflate but none are really suited for a network stream.

Some people have suggested that I look at video stream compression techniques.

Does anyone have advice on this matter ?

#2
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
I'm not sure what it is you're trying to do. Essentially this?



Stream compressed_network_stream = new DeflateStream(new NetworkStream())




#3
1gn1t0r

1gn1t0r

    Newbie

  • Members
  • Pip
  • 2 posts
It doesn't flush properly




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users