Monday, March 21, 2011

Convert String to byte array

This example shows how to do it:

String stringToConvert = "This String is 76 characters long and will be converted to an array of bytes";

byte[] theByteArray = stringToConvert.getBytes();

No comments:

Post a Comment

Chitika