string和byte[]互相转化

1、byte[]转化为string

byte[] b;
String str = new String(b);

2、String转化为byte

Str s;
byte[] b = s.getBytes();
原文地址:https://www.cnblogs.com/arthur3/p/3263250.html