I am just trying to send a WAV file to Internet Explorer using the ASP.net handler:
public void ProcessRequest(HttpContext context)
{
HttpResponse response = context.Response;
response.ContentType = "audio/x-wav";
response.WriteFile("MyWav.wav");
response.AddHeader("Content-Length", "304578");
response.Flush();
}
This works for Firefox and Chrome, but I just got a blank screen in Internet Explorer. What for?
(I tried to set the “Content-Disposition” header. If I set it to “attachment”, I will be presented with a download dialog. If I set it to “inline”, I will just get a blank page, as before.
source
share