How can I convert a array of bytes
to String
without conversion?.
I tried:
String doc=new String( bytes);
But the doc file is not the same than the bytes (the bytes are binary information). For example:
String doc=new String( bytes);
byte[] bytes2=doc.getBytes();
bytes
and bytes2
are different.
PS: UTF-8 Does not work because it convert some bytes in different values. I tested and it does not work.
PS2: And no, I don't want BASE64
.