for (int i = 0; i < fields.getCount(); i++) {
IField field = fields.getElement(i);
IFieldValue fieldValue = field.getValue();
if(field.getValue().getType().equals(FieldValueTypeEnum.FVT_Picture)){
System.out.println(fieldValue.getAsPicture());
} else{
trace(field.getName() + ": "
+ (field.getValue() != null ? field.getValue().getAsString() : "."));
IFieldValue fieldValue = field.getValue();
}
}
The above code snippet gave the field value. But i want to save the field value that is an image type. I need to save the picture and place it to a different location. How can i do this in java using flexi capture engine 11