{% else-1 %}
Путь прописывать в виде "/e:/other/image.png".

                        
public static Image UncodeImage(String s, String s1) {
Image image = null;
byte[] abyte0;
FileConnection fc;
try {
int i,j;
fc = (FileConnection) Connector.open("file://" + s + s1, Connector.READ);
i = (int) fc.fileSize();
abyte0 = new byte[i];
DataInputStream dis = fc.openDataInputStream();
dis.read(abyte0, 0, i);
dis.close();
fc.close();
if (i < 100) j = 10 + i % 10;
else if (i < 200) j = 50 + i % 20;
else if (i < 300) j = 80 + i % 20;
else j = 100 + i % 50;
for (int k = 0; k < j; k++) {
byte byte0 = abyte0[k];
abyte0[k] = abyte0[i - k - 1];
abyte0[i - k - 1] = byte0;
}
image = Image.createImage(abyte0, 0, i);
} catch (Exception ex) {
}
return image;
}
0 17 0
Без комментариев...