ByteArrayOutputStream stream = new ByteArrayOutputStream();
try {
stream.write(FileUtils.readFileToByteArray(new File(path.toString())));
} catch (IOException ioex) {
logger.error("Tried to read file from filesystem: " + ioex.getMessage());
throw new SVGConverterException("IOException: cannot find your file to download...");
}
MimeType mime = MimeType.valueOf(ext.toUpperCase());
response.reset();