create image from RGB array

I have an RGB array of int

every int is the value in byte of A(1?byte) R(2癰yte) G(3癰yte) B(4癰yte)

How can I create an image from this array?

I try

BufferedImage bi = new BufferedImage(mp4.getWidth(), mp4.getHeight(), BufferedImage.TYPE_4BYTE_ABGR_PRE);

bi.setRGB(0,0,mp4.getWidth(), mp4.getHeight(),dataRGB,0,1);

but it create a blank image.

RGB data is correctly because in J2ME with method

img = Image.createRGBImage(rgb,mp4.getWidth(),mp4.getHeight(),false);

creates image correctly.

Anyone can help me? thanks

[583 byte] By [paolo_cucchia] at [2007-10-3 1:04:05]
# 1
crosspost, I answered in your provious post http://forum.java.sun.com/thread.jspa?messageID=4310313&#4310313
gimbal2a at 2007-7-14 18:00:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...