post image using worklight http adapter proper format
问题 I am trying to post an image (as part of a form) to a PHP server from a Worklight V6 app using the HTTP adapter. The image is base64 encoded navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 8, destinationType: navigator.camera.DestinationType.DATA_URL }); .. later in the code $('#myImageImg').attr('src', "data:image/jpeg;base64," + imageData); I send the image to the adapter var img = $('#myImageImg').attr('src'); var formData = {"someField" : name, "image" : img }; var