Hi all,
How can we convert contact PHOTO binary data to image format? Please give me your advise?
Following is my code:
PHP Code:
byte[] contactPhoto = blackberryContact.getBinary(Contact.PHOTO, Contact.ATTR_NONE);
EncodedImage pngIMage = EncodedImage.createEncodedImage(photoImage, 0, photoImage.length);
The encoded image line always throws IllegalArgumentException, mean that the contactPhoto byte array is not image format byte array.
Once again, please give me your advise.
Thank you,
Vien