M
Mike McCarthy
Hello all,
I wanted to see if anyone was having the same problems as me playing
an .mp3 file after forcing a download from and IIS server using ASP
and the following code:
<%
Response.ContentType = "audio/mpeg"
Response.AddHeader "Content-Disposition", "attachment;
filename=test.mp3"
%>
I double-checked that the web server's MIME type setting match the
..mp3 extenstion with the audio/mpeg ContentType. The download prompt
box comes up correctly, and I save the MP3 file to disk.
But when I try to open it using Windows Media Player or Quicktime,
both programs tell me it cannot recognize the file, and Windows Media
player just crashes.
I double-checked the .mp3 file that was saves, it doesn't contain zero
bytes, or have any hidden extensions past the .mp3 extension... for
all intensive purposes, I am doing this 100% correctly... I've
successfully tried the same code above using a Word document, and it
works just find. I've also tried running it on my localhost machine,
but I get the same error for the MP3.
If anyone has any ideas, I would much appreciate your input.
Thanks much,
Mike McCarthy
I wanted to see if anyone was having the same problems as me playing
an .mp3 file after forcing a download from and IIS server using ASP
and the following code:
<%
Response.ContentType = "audio/mpeg"
Response.AddHeader "Content-Disposition", "attachment;
filename=test.mp3"
%>
I double-checked that the web server's MIME type setting match the
..mp3 extenstion with the audio/mpeg ContentType. The download prompt
box comes up correctly, and I save the MP3 file to disk.
But when I try to open it using Windows Media Player or Quicktime,
both programs tell me it cannot recognize the file, and Windows Media
player just crashes.
I double-checked the .mp3 file that was saves, it doesn't contain zero
bytes, or have any hidden extensions past the .mp3 extension... for
all intensive purposes, I am doing this 100% correctly... I've
successfully tried the same code above using a Word document, and it
works just find. I've also tried running it on my localhost machine,
but I get the same error for the MP3.
If anyone has any ideas, I would much appreciate your input.
Thanks much,
Mike McCarthy