File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes how to send a file or photo to clients using sockets?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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---
Laudney Ren
Ranch Hand

Joined: Jan 06, 2002
Posts: 111
when you have established a socket, the sender calls Socket 's getOutputStream and writes to the stream; the client calls Socket 's getInputStream and reads from the stream.
Either stream can be wrapped by higher-level stream such as FileOutputStream and OutputStreamWriter.


" Veni, vidi, vici "<br />" I came, I saw, I conquered "
 
 
subject: how to send a file or photo to clients using sockets??
 
Threads others viewed
how to send a file or photo to clients using sockets??
Handle Multiple clients
how to send a file or photo to clients using sockets??
how to send a file or photo to clients using sockets??
can cany one help me how to insert Image/JPG files to MS data Base
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com