hi i have written a small chat application.. gui created using frames.. both can send text to one other using socket programing over the localhost.. is it possible to send files too along with just text??
Open the file into a FileInputStream, read (say) 1024 bytes at a time, send them over the Socket connection. At the other end read the incoming bytes from the socket and write them toa FileOutputStream. Wrap the whole process in a simple protocol for requesting a file and hey presto!