Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Server to know name of Transfering File  RSS feed

Gregg Bolinger
Ranch Hand
Posts: 15304
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 package and it would probably do this method in some way, but I would prefer not to use that package.
Thanks again
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!