GeeCON Prague 2014*
The moose likes Java in General and the fly likes how to send a file or photo to clients using sockets?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "how to send a file or photo to clients using sockets??" Watch "how to send a file or photo to clients using sockets??" New topic
Author

how to send a file or photo to clients using sockets??

Yegappan Balasubramanian
Greenhorn

Joined: Nov 19, 2001
Posts: 13
HI
I want to know how the clients can transfer a file or photo to one another when connected using sockets in java networking.Can any one help me how this should be done.It should work in a similar way as in msn messenger.Pls help me.
Thanks in Advance
---Yegappan---
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
is also in intermediate (maybe because there is a price to win in this group :-) ) with tons of answers.......do not crosspost. otherwise people interested in this have to check all the groups for the answers. also you have better chances in getting an good answer if you write in the good group because there are the experts for your problem.
k
Yegappan Balasubramanian
Greenhorn

Joined: Nov 19, 2001
Posts: 13
Sorry karl.
I am very urgent to know this answer and i had crossposted this in the forums.ya i understand.i got good answers in intermediate.Again i am aplogising.i am very sure this should not be done by me again.Thanks for your response.
cheers
--Yegappan---

zniter goh
Greenhorn

Joined: Sep 23, 2001
Posts: 29
i personally think that u need a server....
a java program that uses ServerSocket and wait for a client which uses Socket to be connected to the Server..
then when the client is connect then u can create a IO Stream from the getInputStream() and getOutStream(), then jus write from client and read from server.....
u can go to my website http://www.geocities.com/zniter_java/download/FileTransfer/FileTransfer.zip i have a program for filet transfer over a network....
hope it help u......
 
GeeCON Prague 2014
 
subject: how to send a file or photo to clients using sockets??