title: Upload Infopath attachment to Sharepoint
body: <p>Of the very few ways I've seen to upload an attachment in infopath to a sharepoint library, none of them seemed very simplistic, and all involved server side code. What I've heard from all these is that the file is stored base64 encrypted inside the xml template of the form.</p>
  
  <p>I have full javascript/jQuery access to the DOM of the form on a sharepoint page, but I'm having difficulty finding the exact location of this base64 string.</p>
  
  <p>Note, I am trying to get the base64 of an attachment BEFORE the form is submitted, I'm assuming it is somewhere in the DOM, but I can't figure out where. Any help is appreciated.</p>