How to perform file transfer using RMI in java?
You need to read the fragments of the file, send them by cable via an RMI call, and then write them from the other side.
This library can help: http://openhms.sourceforge.net/rmiio/
I searched a bit and found this link. It can help you.
http://java.sun.com/developer/codesamples/rmi.html#file