title: How to send image file in inputstream format to server using XMLHttpRequest object
body: <p>I have four parameters in webservice. The service is working gud i have tested using android application. But the same thing i cant do in phonegap.</p>
  
  <p>Parameters : name,emailid,pass and imagefile. Image was in format of base64png. In server side i am receiving as Inputstream. Looking for help to send as in binary format.              </p>
  
  <pre><code>                    body+= ServiceHttpHeader('name',name1);
                      body+= ServiceHttpHeader('emailid',emailid1);
                      body+= ServiceHttpHeader('pass',pass1);
                      body +='Content-Disposition: form-data; name=imagedetails;'
                      body += 'filename='+imagedetails+'\r\n';
                      body += "Content-Type: application/octet-stream\r\n\r\n "; 
                      body +=imgdetailurl+'\r\n';
  
                      body += '--' + boundary + '--';
                      ImageUploadRequest.setRequestHeader('Cache-Control', 'no-cache');
                      ImageUploadRequest.send(body);
  </code></pre>