Two Laptop Bag*
The moose likes Beginning Java and the fly likes filetransfer via internet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "filetransfer via internet" Watch "filetransfer via internet" New topic
Author

filetransfer via internet

tuck
Greenhorn

Joined: Dec 12, 2001
Posts: 1
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

Joined: Jan 17, 2001
Posts: 76
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

Joined: Sep 29, 2000
Posts: 8521
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

"JavaRanch, where the deer and the Certified play" - David O'Meara
louis seifer
Greenhorn

Joined: Dec 14, 2001
Posts: 2
ok, new name


just a greenhorn *mooooh*
Thomas Whalen
Ranch Hand

Joined: Aug 26, 2001
Posts: 123
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.


if you don't know, then ask. if you do know, then share. love is knowledge.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Why don't you show us the code that you tried.
louis seifer
Greenhorn

Joined: Dec 14, 2001
Posts: 2
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

Joined: Sep 29, 2000
Posts: 8521
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.
 
subject: filetransfer via internet
 
Similar Threads
Serialization problem: IOException in writeObject()
How to convert a datagramPacket to a file ?
Applet size
Difference between Cookies and Session in servlets
Properties Files and ResourceBundle