How can I output audio or video from a servlet?
Alex Chaffee For downloading an image, sound, or video file (GIF, JPEG, MP3, WAV, AVI, et al.), see How do I download a (binary, text, executable) file from a servlet or JSP? and How do I create an image (GIF, JPEG, etc.) on the fly from a servlet? .
There is no explicit support for streaming media protocols in the Servlet API. You would have to write, or locate, your own RealAudio or ShoutCast server (for example).