Re: send .doc, .xls files from server to client
Posted By:
mahesh_beri
Posted On:
Friday, December 26, 2008 01:13 PM
java.net.Socket is the basic API that Java platform provides to perform any socket communication.
If you are aiming as simulating a SMTP client connecting to an SMTP server then you need to do following
Connect to SMTP host
Perform inital connection handshakes as per SMTP
Start sending the data (read xls/doc content and send it over the stream)
finish transmission with EOF
Hope this helps !
Mahesh