[ad_1]
To turn a sub string String into a byte buffer
ByteBuffer bb = ByteBuffer.wrap(myString.substring(0,3).getBytes("UTF-8"));
[ad_2]
solved Split string in two parts by length
[ad_1]
To turn a sub string String into a byte buffer
ByteBuffer bb = ByteBuffer.wrap(myString.substring(0,3).getBytes("UTF-8"));
[ad_2]
solved Split string in two parts by length