Can't get the right data I send
<p>My code is :</p>

<pre><code>String str= (char)255 + (char)255 +"1" ;
byte[] sendbuf = str.getBytes();
outputPacket = new DatagramPacket(sendbuf,sendbuf.length,remoteIP,2280);

logSocket.send(outputPacket);
</code></pre>

<p>the result I get is <strong>"0x35 0x31 0x30 0x31"</strong></p>

<p>but what I want is :<strong>0xff 0xff 0x31</strong></p>

<p>How to do this?</p>
