Last post Apr 04, 2008 11:02 AM by Tom_Regan
Apr 03, 2008 02:16 PM|Tom_Regan|LINK
I have an ashx page to serve up *.wav files.
Works fine if I mark the content-disposition as attachment. I get the prompt, open or save the file, and Windows Media Player plays it. This code works:
But, if I mark content-dispostion as inline, Windows Media Player throws an error: 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. This code breaks:
context.Response.ContentType = "audio/wav";context.Response.AddHeader("Content-Disposition",
I've tried using both Response.BinaryWrite and Response.TransmitFile, and the same problem occurs. Is there some trick to serving up a wav file inline?
I'm using IE 7, Windows Media Player 11.0.5721.5230.
Apr 04, 2008 11:02 AM|Tom_Regan|LINK
This turned out to be a permissions issue, please see