*/
public String preProcessAndEncodeInString64(byte[] bytes) throws ImageProcessException {
Validate.notNull(bytes, "Incoming byte array cannot be null");
BufferedImage image = imageConverter.convertByteArrayToImage(bytes);
if (image == null) { // something went wrong during conversion
throw new ImageProcessException();
}
byte[] outputImage = imageConverter.preprocessImage(image);
return base64Wrapper.encodeB64Bytes(outputImage);
}