Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to implement compression in Service(WCF) side to send in data compressed manner to Client. I have implemented in Push I mean sending huge data to WCF service. I am not able to do from service to Client. Please anyone help me out.

Thanks in Advance
Manjunath
Posted

Have a look at:
Optimizing Serialization in .NET[^]
Optimizing Serialization in .NET - part 2[^]

In your case I think they are well worth reading - and the code is pretty fast too :)

Best regards
Espen Harlinn
 
Share this answer
 
Comments
thatraja 9-Feb-12 10:01am    
Good article(s), actually I found those by your Tip/Trick. 5!
Espen Harlinn 9-Feb-12 10:02am    
Than you, thatraja :)
Abhinav S 9-Feb-12 12:05pm    
My 5.
Espen Harlinn 9-Feb-12 15:24pm    
Thank you, Abhinav!
Sergey Alexandrovich Kryukov 9-Feb-12 12:34pm    
Interesting articles, I did not see them before. Thank you for sharing, my 5.
--SA
Try using MTOM encoding. MTOM encoder attempts to create a balance between efficiency and interoperability.
This would mean you would want to change the binding type as well. Have a look at the MtomMessageEncodingBindingElement class[^].
 
Share this answer
 
Comments
Manjunathabe011 9-Feb-12 3:53am    
I have implemented this MtomMessageEncoding already, I want to do further compression using Custom encoding which I want to know how can I achieve.
Espen Harlinn 9-Feb-12 8:33am    
Good suggestion :)
Abhinav S 9-Feb-12 12:05pm    
Thank you Espen.
thatraja 9-Feb-12 9:59am    
5!
Abhinav S 9-Feb-12 12:05pm    
Thank you thatraja.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900