}
}
}
private void writeUsingMMCComputingImageIO(BufferedImage bi, OutputStream os) throws FormatIOException {
TIFFImageWriterSpi tiffspi = new TIFFImageWriterSpi();
ImageOutputStream ios = null;
ImageWriter writer;
try {
writer = tiffspi.createWriterInstance();
ios = ImageIO.createImageOutputStream(os);
writer.setOutput(ios);
writer.write(bi);
} catch (IOException e) {
logger.error(e,e);