Two different streams at same time
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 ?
Re: Two different streams at same time
You could create 2 streams on both ends or you could create an obect which can contain any data and then create an object stream.