Reputation: 1
There is a new requirement where I need to Compress the WCF service response in GZIP format and send it to partner systems in C#. How can I achieve this ?
I have tried adding the configurations in web.config file. But it didnt work.
Upvotes: 0
Views: 39
Reputation: 518
I offer you two options:
1.You can use custom bindings to achieve this
<customBinding>
<binding name="GzipBinding">
<binaryMessageEncoding compressionFormat="GZip"/>
<httpTransport />
</binding>
</customBinding>
2.Using GZip Encoder, here are the relevant demo documents and examples
Upvotes: 0