Conversao de bytebuffer em array d bytes

1 resposta
_

alguem sab como converter bytebuffer em array d bytes e vice versa?
c puderem ajudar…
[]'sss

1 Resposta

BrunoBastosPJ
byte[] array = myByteBuffer.array();

ByteBuffer bf = ByteBuffer.wrap( array );

http://java.sun.com/j2se/1.4.2/docs/api/java/nio/ByteBuffer.html

Criado 8 de novembro de 2006
Ultima resposta 8 de nov. de 2006
Respostas 1
Participantes 2