title: Client - server socket byte transmission
body: <p>I am sending a byte array from a client (android)</p>
  
  <pre><code>byte[] data = new byte[7];
      data[0] = "{".getBytes()[0];
      data[1] = "{".getBytes()[0];
      data[2] = (byte) 0xd1;
      data[3] = (byte) 0x01;
      data[4] = (byte) 0x00;//0xd1 + 0x00;
      data[5] = "}".getBytes()[0];
      data[6] = "}".getBytes()[0];
      os.write(data);  // os - Output stream
  </code></pre>
  
  <p>and in the server i am listening to it...</p>
  
  <pre><code>InputStream is = this.socket.getInputStream();
      DataOutputStream os = new DataOutputStream(this.socket.getOutputStream());
  
      // Set up input stream filters.
      InputStreamReader isr = new InputStreamReader(is);
      BufferedReader br = new BufferedReader(isr);
  
      // Get the request line of the SMS request message.
      String requestLine = br.readLine();
      System.out.println(requestLine + "&lt;---- Received message");
  </code></pre>
  
  <p>When i send such a data.. br.readLine() doesnt get called or stuck.. When i am sending just a string  from the client</p>
  
  <p>os.writeBytes("Automated message");  it works jus fine...</p>