try {
stream.write(FileUtils.readFileToByteArray(new File(filename)));
} catch (IOException ioex) {
logger.error("Tried to read file from filesystem: " + ioex.getMessage());
throw new SVGConverterException("IOException: cannot find your file to download...");
}
return stream;
}