Click to See Complete Forum and Search --> : IO


bandaru.suresh
September 28th, 1999, 03:13 PM
Well, I have java application .
I have created a socket on client and server socket on teh server. The serevre socket is listening to my client and it is responding each time my client tries to reach it.

Now in io we have FileInputstream which takes a File object. and we can copy one file from another using FIs nad FOS. inthe same m/c.

The Socket class has a method which is returning a InputStream and OutputStream objects. So it means it is only these two which should be used tooacces a file.

As I cannot get a FileInputStream or FOS object , how am I going to acces a file on a remote m/c copy it and save it some where else?


Suresh