• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

filetransfer via internet

 
tuck
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
how can i send a file from my server to a client ???
i try with urls i try it with streams but it dont work
excuse my bad english
i�ve got a client that tells the server to send a file but eigther the compiler tells me that theres a f**** method hge dont understand or something else
please help me.....
 
Philip Pross
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For file transfer, I find the best way is with sockets. What I mean in more detail is, the clients has the control of what they want to do. The server has two processes running on two different ports, like someone waiting at the door for you.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tuck,
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
Thanks,
Cindy
 
louis seifer
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, new name
 
Thomas Whalen
Ranch Hand
Posts: 123
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not a bartender, but am a frequent visitor. so, all i ask that other drinkers be more polite and refrain from cussing or even saying the bad words when their mouths are foaming with ale.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you show us the code that you tried.
 
louis seifer
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its ok, i bought a book, its better to learn java with a book not throug the internet
------------------
just a greenhorn *mooooh*
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah you are right. Thats why we all have lots of those books. This should just be for when those books don't make sense, or you just can't FIND the answer in them.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic