title: WCF Configuration with Mtom encoding and BasicHttpBinding not working - doing base64 encoding
body: <p>I would be grateful if somebody can shed some light on this:</p>
  
  <p>I want to upload binary data via Mtom to a service.</p>
  
  <p>If I configure the endpoint binding with:</p>
  
  <pre><code>&lt;wsHttpBinding&gt;
      &lt;binding name="WsHttpMtomBinding" messageEncoding="Mtom" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Mtom works - I can see in Fiddler that the binary content is send with Mtom.</p>
  
  <p>If I configure it with:</p>
  
  <pre><code> &lt;basicHttpBinding&gt;
      &lt;binding name="WsHttpMtomBinding" messageEncoding="Mtom" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>It gets base64 encoded if I look on Fiddler what is send.</p>
  
  <p>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. </p>
  
  <p>Why is it getting base64 encoded?</p>