byte[] migratedFile = new byte[]{};
try {
migratedFile = FileUtils.getBytesFromFile(new File(outputFile));
DigitalObject u = new DigitalObject();
u.getData().setData(migratedFile);
FormatInfo tFormat = new FormatInfo();
tFormat.setDefaultExtension(config.getOutEnding());
result.setTargetFormat(tFormat);
result.setMigratedObject(u);
} catch (Exception e) {
log.error("Could not get outputfile "+outputFile, e);
result.setReport(result.getReport() + "\r\n error: could not retrieve outputfile.");