title: How can I store Objects in cassandra using the blob datatype
body: <p>I tried with the data type <code>blob</code>. That's giving some Datastax exception. I tried the object itself, bytearray. Still no good:</p>
  
  <pre><code> Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: Invalid STRING constant ([B@547248ad) for user_object of type blob
  </code></pre>
  
  <p>This is the failing INSERT:</p>
  
  <pre><code>executeSting.append("INSERT INTO htadb.objecttable (object_id, bucket_name, object_key, link, user_status, user_object) ")
              .append("VALUES (")
              .append(objectId).append(",'")
              .append(bucketName).append("','")
              .append(key).append("','")
              .append(link).append("','")
              .append("online").append("','")
              .append(serializer(register)).append("')"
                      + ";");
  </code></pre>