aspose file tools*
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 Spring in Action this week in the Spring 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: 19719
    
  20

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Copying a file over the network