Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Send a file through a socket connection



Hi All,

I need to read a file using a server socket and send the file to a client socket and assemble the file at the clients end. I tried to do it several ways, but failed.

Can someone tell me how to do it. Specially assemble the bits at the clients end and recreate the file and assign to a file object.

Thanks.