Hi,
I am using your library to process ICL file. I could able to read all the records of my sample file. But i am facing issue with saving the image to the file. File is getting created but could not able to view the image.
below is the code i am using to save the file after reading..
Please correct me any mistake i have done here.
<
//readRecord is the type of ImageViewDataRecord
createImageFile("", readRecord.getFieldAtPosition(19).getFieldDataBytes());
>
public static void createImageFile(String fileName, byte[] data){
try{
String dataFileName = "d:/Work/ICLFiles/imagesCSF/image"+imagefileExt;
imagefileExt++;
FileOutputStream fos = new FileOutputStream(dataFileName);
fos.write(data, 0, data.length);
fos.flush();
fos.close();
}catch(Exception e){
e.printStackTrace();
}
}
Hi,
There is a standard method "saveImage(String path)" in ImageView class that will do this task for you. Share complete code if there is problem further.
Thanks