send .doc, .xls files from server to client
1 posts in topic
Flat View  Flat View

Posted By:   N_S
Posted On:   Thursday, December 25, 2008 04:37 AM

I am trying to make SMTP simulation . i need to send .doc, .xls files to client through sockets... tell me the java API's for this

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 !

About | Sitemap | Contact