String转byte数组:
String str = "abcd"; byte[] bs = str.getBytes();
byte数组转String:
String str = "abcd"; byte[] bs = str.getBytes(); String s = new String(bs);