Hi,
Thanks for your quick reply.
As you have written that there are few methods to convert octet values into binary that are strings. But I have to convert a string into Octet. So do you mean that first i have to convert it into binart then into octet. If I am right how can i implement it in java.
Thanks
You've got it the wrong way around: an octet can contain 256 different values;
it's us humans that want to represent those numbers in writing (Strings). There
are a lot of representations for numbers and a binary representation is one of
them. So representations are always Strings. You can convert numbers (stored
in octets) to their String representation and vice versa.
Read the API documentation for the following classes:
Byte,
Integer, and
String.
kind regards,
Jos