O'Reilly logo

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications by Steven Cheng

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transferring binary data with MTOM encoding

For Web Services/WCF services that use SOAP XML as the natural message format, binary data in service operations will be transferred as the Base64-encoded string over the transport layer. This is not quite efficient for binary data transfer, as the encoded Base64 string will increase the data size compared to raw binary bytes. Fortunately, WCF supports the MTOM message encoding that can help transfer binary data as their raw bytes within a standard SOAP envelope.

In this recipe, we will use a sample service to demonstrate the steps necessary for applying MTOM message encoding for WCF service endpoints.

Getting ready

Most of the HTTP-based WCF built-in bindings support the MTOM encoding format. A detailed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required