Trying to send the base64 image to server through restwebservice. Problem is i didnt get any error in logcat and its not hitting the server. Server url is correct. and i tested service using webapp its working fine. But in phonegap its problem
function Test() { alert(imgByte);
/**imgByte is in base64 format -->pic.src = "data:image/png;base64," + imageURI; imgByte = pic.src;*/ $.ajax({ type : "POST", url : IMGURL, data : { image : imgByte }, delay : 3, dataType : "text", cache : false, error : function(xhr, ajaxOptions, thrownError) { debugger; }, success : function(response, status, xhr) { alert("haiSuccess1"); response = xhr.responseText; var responseArray = JSON.parse(response); if (responseArray.status == "success") { alert("haiSuccess"); } } }); }