title: Converting bytes[] to string in HBase
body: <p>I have the below row stored in a HBase table</p>
  
  <pre><code> DIEp(^o^)q3    column=DIE:ID, timestamp=1346194191174, value=\x00\x00\x00\x01
  </code></pre>
  
  <p>I am trying to access the value and convert it to its string representation which should be <code>1</code>, but I don't get the right string representation when I <code>cat</code> this file (where my output is redirected to)</p>
  
  <pre><code>cat /hadoop/logs/userlogs/job_201209121654_0027/attempt_201209121654_0027_m_000000_0/stdout
  </code></pre>
  
  <p>I got something like this garbage  <code>NUL NUL NUL SOH</code></p>
  
  <p>below is the code fragment that I am using. </p>
  
  <pre><code>byte[] result1 = value.getValue("DIE".getBytes(), "ID".getBytes());
  String myresult = Bytes.toString(result1);
  System.out.println(myresult);
  </code></pre>