Last post Feb 15, 2006 07:49 PM by edgett
Feb 13, 2006 03:36 PM|edgett|LINK
I am developing a DotNetNuke module that opens a file on the file system.
When the file type is application/msword it responds correctly, opening the file in MS Word. However when the file type is
audio/mpeg it does absolutely nothing (no prompt to save, no download, no open). Any ideas...???
Below is a snippet of the code.
Feb 13, 2006 08:37 PM|imagemaker|LINK
I'm wondering if the large size of an audio file (compared to a MS Word file) may be a problem especially when using Response.WriteFile. I believe that Writefile must first load the entire file into memory before beginning to send it to the response stream.
Microsoft has an interesting KB article about this problem along with a possible solution to break the load and write to the response stream into smaller chunks here:
Feb 14, 2006 09:40 AM|edgett|LINK
Yeah, I was thinking maybe that was it, but then I realized it actually is the content type.
If I do the
Response.AddHeader("Content-Disposition", "attachment; filename=...; thing it will work with the
audio/mpeg but then when I say download the file it opens Windows Media Player but the main browser window says "Action Canceled".
Do you have any idea how to get around seeing the IE "Action Canceled" page?
Feb 15, 2006 07:49 PM|edgett|LINK