Again some technical tips, much already exist, but those are the ones I didn't find over the net. Feel free to take advantage of whatever content present on this page.
Here is some code to convert a raw tiff image to a compressed one :
There are different ways to construct the target BufferedImage : with TYPE_BYTE_BINARY, we get a black and white image
BufferedImage raw = ImageIO.read(new File("src/main/resourc...