title: How to post an image in base64 encoding via .ajax?
body: <p>I have some javascript code that uploads an image to a server. Below is the ajax call that works correctly.</p>
  
  <pre><code>$.ajax({
      url: 'https://api.projectoxford.ai/vision/v1/analyses?',
      type: 'POST',
      contentType: 'application/json',
      data: '{ "Url": "http://images.takungpao.com/2012/1115/20121115073901672.jpg" }',
  })
  </code></pre>
  
  <p>I now need to upload the image a a base64 encoding e.g. </p>
  
  <pre><code>data: 'data:image/jpeg;base64,/9j/4AAQSkZJRgA..........gAooooAKKKKACiiigD//Z'
  </code></pre>
  
  <p>But that doesn't work, i.e. the server doesn't recognise the data I send and complains.</p>
  
  <p>Does anyone know what the correct format is for sending base64 encoded data in the AJAX call ?</p>