my dog learned polymorphism
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Need Server to know name of Transfering File
 
Similar Threads
How to send image over a network
FTP(File transfer)
Sending a file over socket
Cannot Figure Out This Syntax Error
File Transfer via Sockets