1、byte[]转化为string
byte[] b; String str = new String(b);
2、String转化为byte
Str s; byte[] b = s.getBytes();