wesdfgfgd
wesdfgfgd

Reputation: 693

Using byte[] to convert images in jpeg or bmp on android

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

Answers (1)

Jave
Jave

Reputation: 31846

Take a look at the BitmapFactory class, especially the decodeByteArray()-method.

Upvotes: 4

Related Questions