this.sendAudio = function() { var blob = event.clipboardData.items[0].getAsFile(), var uri = "http://localhost/TestWebService/UploadService.asmx?op=UploadFile"; var xhr = new XMLHttpRequest(); xhr.open("POST", uri, true); xhr.onreadystatechange = function() { if (xhr.readyState == 4 && xhr.status == 200) { // Handle response. alert(xhr.responseText); // handle response. } }; xhr.send(blob); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)