This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
How do you write a file across a socket connection you create when communicating between a network client and the server? I'm tempted to believe that you can do something like this: // on server File f = new File("Test.txt") if (f.exists()) // output is an ObjectOutputStream. output.writeObject(f); =========================================== // Then, client processes received object as a file. Is this how to best do it or do I need to actually break down the file and send it byte by byte? Thanks for anyone's input. -- Mike