2 Replies Latest reply: Jul 28, 2010 8:05 AM by 794822 RSS

    How to truncate a bytebuffer to the length of bytes read ?

    794822
      I have tried bytebuffer.flip(); bytebuffer.compact();
      But the bytebuffer.array() always returns then number of bytes corresponding to the length of buffer initially defined.
      ????