Exchanging Binary Data with MTOM and Web Services
In the distributed computing class I'm teaching this week we're covering a few topics related to the Web Service Enhancements V3 (WSE3). One of the nice features of WSE3 (and WCF for that matter) is that it can be used to exchange binary data quite easily and in an efficient manner by using MTOM. I put together a demo project that shows how MTOM can be used to exchange binary data between a client and a Web Service.
The demo code dynamically generates bar and line chart images using .NET and GDI+. A client can pass XML data representing the data to chart to the Web Service and the service will handle dynamically generating the chart image and return it to the client using MTOM. The code for the demo can be downloaded here.