title: Upload PDF as base64 file to the server using AJAX
body: <p>Say I want to upload the following information to a server:</p>
  
  <pre><code>var info = {
      name: "John",
      age: 30,
      resume: resume.pdf  // base64 String
  };
  </code></pre>
  
  <p>My <code>AJAX</code> call might look something like this:</p>
  
  <pre><code>$.ajax({
      url: "http://example.com",
      type: "POST",
      dataType: "JSON",
      data: info,
      success: function (response){
          // do something
      }
  });
  </code></pre>
  
  <p>My question is how to modify an <code>AJAX</code> call to upload the <code>resume.pdf</code> file (resume property) as base64 String to the server?</p>