[fix] switched from byte[] to ByteBuffer for binary type