Take a look at Java documentation,e specially to these classes:
URLConnection : use method openConnection( );
BufferedInputSt ream : use method getInputStream( ) read() close()
FileOutputStrea m: use method write() and close()
I hope you understand how to use sockets or RMI to connect the client and server in the first place. If you do, then you need to understand the streams you may need to solve your problem.
Comment