Convert Java String into a Byte Array
Posted on 2006-11-02
I have a String containing an IP address. Ex. String ip = "192.168.10.1" and I need this turned into a byte array.
bytear = 192;
bytear = 168;
bytear = 10;
bytear = 1;
The periods in the ip address are what's getting me. Suggestions?