posted 19 years ago
This headache has made me sleepless for a while.
I allow people to download file from my server. After I got this request, I read file into byte[] and then send it out with ServletOutputStream. Coding below is sending out wmv file to user.
Now the problem, the user browser can't read the file type, which is empty, so I have to add a file type to that downloaded file, say , from "ddd" to "ddd.wmv", then it will work.
But this is not a good solution. I guess the problem is res.setContentType("video/wmv"), but what is correct ContentType for wmv file type ? Where I could find a MIME table for this ? or my guess is totoally wrong ?
Thanks.