This content has been marked as final.
Show 1 reply
-
1. Re: uploadFile and image size
wookashs Jun 6, 2008 10:09 AM (in response to wookashs)solved (but maybe someone knows better solution?)
public void listener(UploadEvent event) throws IOException {
UploadItem item = event.getUploadItem();
logo = item.getData();
Image img = new ImageIcon(logo).getImage();
log.debug("width: " + img.getWidth(null));
log.debug("height: " + img.getHeight(null));
log.debug("ok");
}