哪个是将byte []转换为String然后再转换回String的最佳方法?
我需要像(伪代码)
这样的东西//Servlet A
byte[] b;
String bString = b.toString():
context.setAttribute(bString)
//Servlet B
String bReceivedString = context.getAttribute(bString);
byte bReceived = bReceivedString.toByteArray();