This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes java.net.SocketException: Connection reset by peer: socket write error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "java.net.SocketException: Connection reset by peer: socket write error" Watch "java.net.SocketException: Connection reset by peer: socket write error" New topic
Author

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

Kenny Birney
Greenhorn

Joined: Apr 27, 2004
Posts: 9
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

Joined: Apr 27, 2004
Posts: 9
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.net.SocketException: Connection reset by peer: socket write error
 
Similar Threads
send data to swing from javascript
ORA-01000 maximum open cursors exceeded
parse a csv file (PLEASE HELP)
IGNORE THE PREVIOUS BASE64 QUESTION!
Byte[] to image