Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

converting BCD to string  RSS feed

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I' am trying to retrieve the imei number of a blackberry device.

The method getIMEI() I' am using returns a byte array in BCD format. I want to convert the value to a string. I' am unable to do that.
the byte array displays a length of 15, but i' am unable to get the value passing the array of bytes as a parameter to a string object nor am i able to retrieve it using byteArrayInputStream .

Please help me in resolving the issue.

Thanks in advance.

regards
Komal
 
Crusading Chameleon likes the size of this ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!