if (dir!=null && !dir.exists()){
dir.mkdirs();
}
- try {
- processor.writeScaledData(iconFile, "JPEG");
- }
- catch (IOException e) {
- throw new MediaFailure(e);
- }
+ processor.writeScaledData(iconFile, "JPEG");
anImageEntity.setFieldValue("img_height",
Integer.toString(processor.getHeight()));
anImageEntity.setFieldValue("publish_path", filePath);
anImageEntity.update();
+ reportChange(iconStoragePath);
+ reportChange(imageFilePath);
}
}