This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Well, crudely, yes, What you're describing is really trivial, at a basic level. Open the file, read the binary data, open a socket, spit the binary data through it. A dozen lines of code. But in reality, you probably want to do something a little fancier. Have a look at the Java Media Framework extensions.