Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while dowloading a movie from server

ajay vasudevan
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the above exceptions occur while i try to view a mpeg file by using servlets.the mpeg file resides on the server.i used res.setContentType("video/mpeg"),got an Inputstream from ServletContext, got an outputstream and wrote the bytes.

but getting the Exception while opening the file at the client.
ClientAbortException;,Connection reset by peer.
socket write exception at line .....

the line is

i changed the contentType as setContentType("video/mpeg"),but the file couldn't be recognized at the shows blank at filetype so the user has to choose from the type of program to open the file.

i want the foll scenario.

when the page is submitted ,the file gets downloaded automatically and can view in the browser itself.(or the concerned the media player )

please do help me with this dilemma.


ajay vasudevan
scjp 1.4
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic