How can i convert gif to byte array and byte array to gif image in JavaME?

时间:2019-04-08 13:32:19

标签: java java-me gif bufferedimage

I have byte array of gif image and i'm using something like this

import javax.microedition.lcdui.Image;
 byte[] picBytes = (byte[])obj;
Image.createImage(picBytes, 0, picBytes.length));

I want to show image on

javax.microedition.lcdui.Form;

this is working fine for JPEG and PNG images but when i try to convert GIF image using this logic my GIF image is looks like PNG or JPEG image, no animation remain in GIF. please help me. Thanks in advance :)

0 个答案:

没有答案