I would be grateful if somebody can shed some light on this:
I want to upload binary data via Mtom to a service.
If I configure the endpoint binding with:
<wsHttpBinding>
<binding name="WsHttpMtomBinding" messageEncoding="Mtom" />
Mtom works - I can see in Fiddler that the binary content is send with Mtom.
If I configure it with:
<basicHttpBinding>
<binding name="WsHttpMtomBinding" messageEncoding="Mtom" />
It gets base64 encoded if I look on Fiddler what is send.
I read that WCF does base64 encoding if the message size is smaller than a certain size. I made sure the binary content is big enough. I must use basicHttpBinding because the service is not under my control.
Why is it getting base64 encoded?