Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: EncodedImage.createEncodedImage = IllegalArgumentException

Please start your own Thread for your problem. 

 

But before you do, check the contents of your input byte array and make sure it matches what you expect it to be and that it is a recognised image type. 

Highlighted
Contributor
Posts: 17
Registered: ‎06-07-2013
My Device: Blackberry Curve - 9300
My Carrier: ----

Re: EncodedImage.createEncodedImage = IllegalArgumentException

[ Edited ]

I apologize for posting in the same thread. I tracked that my inputArray was from a url which gave me a  404 page not found error so I wrote a catch block for the IllegalArgumentException to avoid it.