I have an open Client-server connection thru a socket.
What I what to do is send some text (coming from keybord) and a file (pdf) to the server.
So, is it possible to create two types of streams? one for sending text (character stream) and other to send a file (byte stream) ?
or it can be included all in the same stream? if so, then how can I read the stream in the server ? how do I know where the File begins or where the text begins ?