move files from a server to a client using rmi

I want you to give me an example of a program that has a CentralComputer class and a RemoteComputer class.
The CentralComputer sends two files to the RemoteComputer using rmi.
The RemoteComuter has to save the files in its disk.

Can you give me an implementation of such program?
Thank you!
Who is Participating?
rainmalConnect With a Mentor Commented:
Well you cannot really physically transfer the files.What you can do though is invoke the remote method on the server that will open and read the file into a buffer, and on the client side you could save this data in the buffer by opening a new file on the client machine.
All Courses

From novice to tech pro — start learning today.