This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File transfer  RSS feed

 
kimi lynn
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I'm quite confused and could somebody pls clarify me.Thanks in advance.Well,here it goes....
I would like to tranfer files between client and server from my GUI.Here are the steps I've written it down my self, please correct me if I'm wrong.
1.Create a button which on click will open a browser window to choose a file.
2.After selecting the file and when you click "Send"(button)the file has to be transferred to the server machine.si, under the action event of this button, I've to write all my file transfer code, right?
3.Before, i go for transfer of files, my server program shld be running on the machine on which I'm connecting to, right?
Did i miss anything else??Thanks for your time
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kimi lynn:
I've to write all my file transfer code, right?

Correct

3.Before, i go for transfer of files, my server program shld be running on the machine on which I'm connecting to, right?

Correct.

Did i miss anything else?

Only the details of reading files and sending them across sockets, but you can find those in the Java Tutorial, Custom Networking and IO.
You should do a search on this forum. Questions about file transfers come up a couple times a week. I'm sure a few posts have some details.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

under the action event of this button, I've to write all my file transfer code, right?

Hopefully, you'll write your file transfer code in its own class, and merely invoke it from the actionPerformed() method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!