aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Need Server to know name of Transfering File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Need Server to know name of Transfering File" Watch "Need Server to know name of Transfering File" New topic
Author

Need Server to know name of Transfering File

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Ok, I have written a little bitty Client and Server program that I can use to send files to a Server in my network. Just doing this to learn java sockets. My question is how can I tell the Server what the name of the file is that is being transfered so it know what filename to give the tranfering file.
Here is my code

And now the Server

Thanks for any help. By the way, I would like to do this in relation to the code I have. I know that there is the sun.net.ftp package and it would probably do this method in some way, but I would prefer not to use that package.
Thanks again


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Server to know name of Transfering File