This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Copying a file over the network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Copying a file over the network" Watch "Copying a file over the network" New topic
Author

Copying a file over the network

Mohamad Obagi
Ranch Hand

Joined: Oct 25, 2008
Posts: 37



When i try to copy a file that is more than 300KB it give me a socket error dont know why....
java.net.SocketException: Software caused connection abort: socket write error
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19911
    
  23

Can you also show us the receiving code? Perhaps that one is closing the stream too early.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mohamad Obagi
Ranch Hand

Joined: Oct 25, 2008
Posts: 37
LOL :$ it was, thanks for telling me.

sometimes i just dont pay attention to small things.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Copying a file over the network