Quantcast
Viewing latest article 5
Browse Latest Browse All 23

String To Byte Array - Convert String To Byte Array using getBytes()

Image may be NSFW.
Clik here to view.

String To Byte Array: As seen in String To Char Array post i have previously written, now the same thing, i.e. a string can be converted to byte array easily using the getBytes(). This method returns bytes (byte array) which contains characters in the form of values (ascii values) of the chars in the String object on which it is called. Let us look at the tutorial how we can convert String To Byte Array.

Image may be NSFW.
Clik here to view.


Viewing latest article 5
Browse Latest Browse All 23

Trending Articles