Ali, That 31 30 31 30 31 31 31 30 are the hex expression for the ASCII codes of 10101010. I'd convert that OID to byte and use the OctetString( byte [] ) constructor instead. Jon > I think I have problem with var2 how can I set the value with type octet > such that the octet looks like "10101110" and not 31 30 31 30 31 31 31 30.