title: how to store byte arrays using Jedis
body: <p>I am using <strong>Redis</strong> and its java interface <strong>Jedis</strong> but I am having a problem of how can I hold a list of byte arrays, i had seen set but it works for string only and when I try to create a list an add a byte array it works but when I am trying to add another byte array to that list I get an exception, how can I solve that?</p>
  
  <p>thanks in advance.</p>
  
  <p>code:</p>
  
  <pre><code>  byte[] data = {12,23,45,67,127};
            byte[] data2 = {13,25,46,68,121,44};
            String id = "xyzd12";
            jedis.lpush(id.getBytes(),data);
            jedis.rpush(id.getBytes(),data2);
  </code></pre>
  
  <p>when I run that code I get an exception of:  <code>redis.clients.jedis.exceptions.JedisDataException: ERR Operation against a key holding the wrong kind of value</code></p>