I'm just trying to sent a .wav file to Internet Explorer with an 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'm just presented with a blank screen in Internet Explorer. Why?
(I've tried setting the "Content-Disposition" header. If I set it to "attachment" I am presented with the download dialog. If I set it to "inline", I just get a blank page like before.