Read media stream from servlet in a webpage?

Posted by khue on Stack Overflow See other posts from Stack Overflow or by khue
Published on 2010-05-31T06:04:38Z Indexed on 2010/05/31 6:12 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

Hi, I have a servlet that construct response to a media file request by reading the file from server: File uploadFile = new File("C:\TEMP\movie.mov"); FileInputStream in = new FileInputStream(uploadFile);

Then write that stream to the response stream. My question is how do I play the media file in the webpage using or tag to read the media stream from the response.

Thank you very much. Regards K.

© Stack Overflow or respective owner

Related posts about java

Related posts about html