posted 23 years ago
If I want to pass a file from one machine to another, how to I do so. I've read some thing on here but don't see exaclty how it happens.
Say I want to send a file, test.txt to a machine:
If I have a ServerSocket on my receiving machine then tie that to a Socket, get the InputStream, create an ObjectInputStream from the InputStream and then perform readObject() the file should come on over, but
1) How do I make the readObject back into what it was before (test.txt)
2) How do I know when the file is done?
This is my reciever
This is my sender:
Mind you this is very crude, but I am trying the simplest format first before I make it harder on myself.