Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net.SocketException: Connection reset by peer: socket write error  RSS feed

 
Kenny Birney
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problems a plenty!
i have myself a servelt, which calls other code to get back a Base64 encoded image. I get this back okay. However, when i try to print the image on screen (Iframe), it dies a deah, giving the above error.
below should be some code from servlet. Any help would be much appriciated.
 
Kenny Birney
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed it! turns out, if you just write all the bytes at once, rather than one at a time, it works a whole lot better. Bonza.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!