posted 21 years ago
Hello everyone,
I would like to transfer files from client to server with out using sun ftp package.As of now, the file content is being read and sent to the server but the file is being copied on to "sentfile.txt". So whatever file i send from the client, its been written on the sentfile.txt.(Thats how I've written in the following code but have no clue how to get the actual file which I've sent from the client.Any help would be appreciable.
I think, I've to read the file at the client using a file i/p stream and then write bytes to socket o/p stream.At the server, I've to read the bytes using the socket i/p stream and then write those bytes to file o/p stream.
Thanking you in advance
Client Code:
Server Program
[ February 16, 2004: Message edited by: kimi lynn ]