File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes converting BCD to string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "converting BCD to string" Watch "converting BCD to string" New topic

converting BCD to string

Komal Amaresh
Ranch Hand

Joined: Oct 06, 2008
Posts: 67

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.

subject: converting BCD to string
It's not a secret anymore!