|
-
September 29th, 1999, 09:33 AM
#1
Transferring files form a server
Well, I have java application ,which needs to access file on the server and read it and copy it to yet another place.
I have created a socket on client and server socket on the server. The server 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?
Help would be greartly appreciated
Suresh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|