[RESOLVED] SocketClient is reading line with an end of line byte in it?
Hello, so far my application has worked perfectly. The server sending a line that is terminated by the '\n' character. The client then read's the line stopping at the '\n' character. Now my issue is that I am sending an image over the connection. At index 43 of the image's byte array there is a "10" which converted to ASCII is the '\n' character. So how can I send the '\n' that is inside the array without having it trigger the end of line?
Re: SocketClient is reading line with an end of line byte in it?
RESOLVED. I ended up using a ObjectInputStream/ObjectOutputStream with the readObject/writeObject methods. In addition I used a inflator/deflater for decompression/compression so the image would be sent faster over the network.