private void saveMemoryBlockSerialized(ImageData imageData,File fileSerialize) throws Exception {
  FileOutputStream fos=null;
  ObjectOutputStream oos=null;
  try {
    fos=new FileOutputStream(fileSerialize);
    oos=new ObjectOutputStream(fos);
    oos.writeObject(imageData);
    addScanFile(fileSerialize);
  }
 catch (  Exception e) {
    throw e;
  }
 finally {
    if (oos != null) {
      oos.close();
    }
    if (fos != null) {
      fos.close();
    }
  }
}

private void saveMemoryBlockSerialized ( ImageData imageData , File fileSerialize ) throws Exception { FileOutputStream fos = null ; ObjectOutputStream oos = null ; try { fos = new FileOutputStream ( fileSerialize ) ; oos = new ObjectOutputStream ( fos ) ; oos . writeObject ( imageData ) ; addScanFile ( fileSerialize ) ; } catch ( Exception e ) { throw e ; } finally { if ( oos != null ) { oos . close ( ) ; } if ( fos != null ) { fos . close ( ) ; } } }
salva a un fichero serializado la informacion de la imagen
