public static Image readFile(String fileUrl) throws IOException {
FileConnection fileConn = (FileConnection) Connector.open(fileUrl, Connector.READ);
if (!fileConn.exists()) {
return null;
}
return Image.createImage(fileConn.openInputStream());
}
public static Image downloadAndSaveImage(String url, final String fileUrl) throws IOException {
Image result = null;
// long beforeRequest = System.currentTimeMillis();