View Full Version : Posting image to webservice via AJAX

17 Apr 2011, 2:24 PM
Hi. I am trying to post an image (from the camera or photogallery) to a webservice via AJAX. I'm using phonegap to get access to the camera/photogallery and have it partially functioning. The data gets sent, but, it is not recognized as an image/file by the server. I'm guessing I need to set a requestHeader?

Here is my code:
<script src='http://pastie.org/1805190.js'></script>