File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Yegappan Balasubramanian
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 388
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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......
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic