I have a byte[] and I am trying to check to see what data it contains.
checkData(byte [] data)
{
if(data != null && data.length > 0)
{
String dataString = new String(data);
System.out.println("data "+dataString);
}
}
This snippet of code causes a error exception
The code is called via a config so the error is not the actual error but a config error.
What I need to know is what is the best way to convert byte [] into a string.
Thansk for any help Tony