Monday, March 21, 2011

Convert from byte array to string

This the function to convert byte array to string:

//eg. byte[] byteArray = new byte[] {87, 79, 87, 46, 46, 46};
public static String convertByteArrayToString(byte[] byteArray) {

String value = new String(byteArray);

return value;
}

No comments:

Post a Comment

Chitika