• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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---
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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---

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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......
 
Seriously? That's what you're going with? I prefer this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic