Results 1 to 2 of 2

Thread: [RESOLVED] SocketClient is reading line with an end of line byte in it?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Resolved [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?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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
  •  



Click Here to Expand Forum to Full Width