hi,
im doing validations in java code for image upload..im unable to get validated i.e.,if two files are entered it should check for the dimensions.i m unable to code how to check for the dimensions...ca n anyone help me out...here is the code...
any reply....
thanks,
madhu.
im doing validations in java code for image upload..im unable to get validated i.e.,if two files are entered it should check for the dimensions.i m unable to code how to check for the dimensions...ca n anyone help me out...here is the code...
Code:
public boolean isValidImageContent(ImageContentArray imageContentArray, ContentResponse contentResponse) {
boolean validContentB = true;
validContentB = validateContentProperties(contentResponse);
if (validContentB) {
ArrayList<ImageContentData> imageContentDatas = imageContentArray.getImageContentDatas();
if (imageContentDatas == null
|| imageContentDatas.size() == 0) {
contentResponse.setResponseCode("1");
contentResponse.setRemarks("Image Content is Empty");
} else {
for (ImageContentData imageContentData : imageContentDatas) {
if (imageContentData.getDimesions() == null) {
contentResponse.setRemarks("");
}
}
}
}
return validContentB;
}
thanks,
madhu.