Skip to main content

How to get the byte[] data from an Image object ?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
andrianiaina
Offline
Joined: 2011-05-18

I have a LWUIT Image object and I want to get the raw byte[] data from it. How to achieve that ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

If your image is an instance of EncodedImage (default for images loaded from resource file) just use getImageData()