That method re-encodes a PNG which can have a different byte count than the one in your original image. If you use EncodedImage you can use use getData() to get the original image file.
-- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b3f5899c-f33d-4a99-b236-fc91a3cb092b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
