receiving string from c# to Java mistakes
<p>I want to send String from C# to Jave 
I do it in C# in 2 side like this</p>

<p>Sender: C#</p>

<pre><code>NetworkStream ns1 = _client2.GetStream();
byte[] b = { (byte)2 };//this is the command that sent from client to Server  
ns1.Write(b, 0, 1);
string data = "222222222";
byte[] b2 = _AC.GetBytes(data);
ns1.Write(b2, 0, b2.Length);
</code></pre>

<p>Reciever C#</p>

<pre><code> Byte[] b = new byte[10];
 ns.Read(b, 0, b.Length);
 string Data = _AE.GetString(b);

 while (ns.DataAvailable)
   {
     b = new byte[10];
     ns.Read(b, 0, b.Length);
     Data += _AE.GetString(b);
    }
</code></pre>

<p>I do some coding with no luck in Java .... like this..</p>

<pre><code>byte b = is.readByte();
byte[] buff= new byte[8];
is.read(buff,0,10);
</code></pre>

<p>I receive inside buff[50,50,50,50,50,50,50,50,50];
.....then how to change it to string in java .....
Any help would be great ....thanks</p>
