I want to get byte array from Image Object.
I made the capture program with PC-Cam.
and I used the BufferToImage class, so I got images.
--
fgc = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
buffer = fgc.grabFrame();
btoi = new BufferToImage((VideoFormat)buffer.getFormat());
image = btoi.createImage(buffer);
--
I want to send this images to another MIDlet program.
In MIDlet side, I have to know image's byte array to create Image.
--
in.read(btyeArray, 0, b.length);
img = Image.createImage(btyeArray, 0, btyeArray.length);
--
but There is no method to get byte array of image in Image class.
I try to make Image by using buffer's byte array.
but the result is... illegalArgument Exception.
How can I solve this problem?

