BufferedImage bi = ImageIO.read(upload);
if (bi.getHeight() > 120) {
form.setResult(6);
return SUCCESS;
}
if (bi.getWidth() > 120) {
form.setResult(6);
return SUCCESS;
}
if (bi.getHeight() > 120) {
form.setResult(6);
return SUCCESS;
}
if (bi.getWidth() > 120) {
form.setResult(6);
return SUCCESS;
}