ASN.1.. bad encoded value after byte
Bertil Karlsson
bertil@REDACTED
Mon Aug 29 10:29:17 CEST 2005
It seems as if you have a sequence of bytes that is badly encoded. The
last three bytes "164,1,128" is a tag-length-value sequence, The tag is
of constructed format and thus should the value part be decoded, but
this value, "128", is not possible do decode.
/Bertil
casper2000a@REDACTED wrote:
> Hi,
>
> When I run below command,
> asn1rt_ber_bin_v2:decode(<<103,41,73,4,0,0,0,9,107,33,40,31,6,7,0,17,134,5,1,1,1,160,20,100,18,128,1,0,190,13,40,11,2,4,68,69,86,73,160,3,164,1,128>>,driver).
>
> I get the below error,
> ** exited: {error,{asn1,{"bad encoded value after byte:",
> 42,
>
> <<103,41,73,4,0,0,0,9,107,33,40,31,6,7,0,17,134,5,1,1,1,160,...>>}}} **
>
> What could be the error. Pls advice.
>
> Thanks in advance,
> - Eranga
>
>
> --------------This mail sent through OmniBIS.com--------------
More information about the erlang-questions
mailing list