I have record a Audio wav file using html5 and storing it using XMLHttpRequest code is like below
var xhr = new XMLHttpRequest();
xhr.open('POST', '/upload.aspx', true);
xhr.onload = function (e) {
var result = e.target.result;
};
xhr.send(blob);
And on upload.aspx has below code
String AudioFileName = "Audio_" + DateTime.Now.ToString("yyyyMMdd_hhss") + ".wav";
Request.SaveAs((Server.MapPath(".") + "/Audio/" + AudioFileName), false);
Session["AudioFileName"] = Convert.ToString(AudioFileName);
In my local I have Audio working but with the same code on server the Audio size is 0KB or 1 KB. if I play it then "Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."