title: cassandra row fetch gives junk characters
body: <p>Am learning Cassandra and have written a restclient which would read a file from the DB.</p>
  
  <p>Below is my code to retrieve the data from the DB.</p>
  
  <pre><code>        ResultSet rs = getFile(fileName);
          Row row=rs.one();
  
          ByteBuffer filecontent =row.getBytes("file_content");
          byte[] data = new byte[filecontent.remaining()];
          ByteBuffer bb = filecontent.get(data);
  
          String filelocation = row.getString("file_location");
          String filename = row.getString("filename");
  
          ByteArrayInputStream filecontentfromDB= new ByteArrayInputStream(bb.array());
          File file=writeToFile(filecontentfromDB,fileName);
  
          if (rs == null) {
              return null;
          }
          return file;
  </code></pre>
  
  <p>when I look at the returned file, I find some junk characters at the beginning and followed by my file contents.</p>
  
  <p>Please help me in removing the junk data</p>