I have a wcf client which receives a dataset from a wcf service. It is over LAN and uses NetTcpBinding. I am using the default binary encoding. The size of the dataset can be huge depending on the type of call (these types of calls maybe 5% of the total calls). Also in future the service might be available through http binding.
As far as I know binary encoding provides the best compression of all the available encoders. Is there a way to get better compression on the dataset before sending it to the client?
Binary vs. HTTP binding does not represent compression. This article in MSDN provides a thorough discussion how to implement a custom message encoder that involves compression of the data stream.