img = Image.createImage(input);
img = img.scaledWidth(300);
ImageIO imio = Display.getInstance().getImageIO();ByteArrayOutputStream os = new ByteArrayOutputStream();
try { imio.save(img, os, ImageIO.FORMAT_JPEG, 1.0f); String encodedImg = WebBrowser.createDataURI(os.toByteArray(), mimeMap.get("JPG"));
} catch (IOException e) { e.printStackTrace();}
If I save the image in PNG everything is ok.
I have tested it only on simulator though.
Hi, StateManaged to solve?