Read media stream from servlet in a webpage?
- by khue
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.