The Sun Network Tutorial might be a good resource for a plain Socket transfer. The Client/Server examples there only send a few strings back and forth, but sending a file is not all that different.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
You showed up just in time for the waffles! And this tiny ad:
a bit of art, as a gift, the permaculture playing cards