*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
subject: Need Server to know name of Transfering File
 
Similar Threads
File Transfer via Sockets
Sending a file over socket
FTP(File transfer)
Cannot Figure Out This Syntax Error
How to send image over a network