G
Guest
Does anyone have any good way to write an mp3 file to the browser directly from an aspx page? I tried the same logic as returning any other binary file but it does not seem to work. Here is what i used:
Response.ContentType = "audio/x-mpeg"
Response.WriteFile(sPath)
Response.End()
When media player comes up it says i cannot download from the server. If I try to right-click the link that calls this page, it says internet explorer cannot find the file. Any ideas?
Response.ContentType = "audio/x-mpeg"
Response.WriteFile(sPath)
Response.End()
When media player comes up it says i cannot download from the server. If I try to right-click the link that calls this page, it says internet explorer cannot find the file. Any ideas?