Reputation: 693
I know of using ImageIO on Java.
ImageIO.read(new ByteArrayInputStream(bytes));
I don't have access to this class on android 2.2.
Does anyone know a jar file which would allow me to convert byte array to jpg or bmp? or can someone provide me another solution?
Upvotes: 0
Views: 1262
Reputation: 31846
Take a look at the BitmapFactory
class, especially the decodeByteArray()
-method.
Upvotes: 4