|
-
Aug 19th, 2011, 10:48 AM
#1
Thread Starter
Frenzied Member
[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?
-
Aug 20th, 2011, 07:27 AM
#2
Thread Starter
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|