DWGProcessor.generateJPEGImage(inputStream, writer, 1000);
DWGProcessor.generateJPEGImage(inputStream, writer, 25);
    public ActionForward view(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws IOException {        final String blueprintIdString = request.getParameter("blueprintId");        final Integer blueprintId = Integer.valueOf(blueprintIdString);        final Blueprint blueprint = rootDomainObject.readBlueprintByOID(blueprintId);        final BlueprintFile blueprintFile = blueprint.getBlueprintFile();        // If dspace worked properly we could do this...        //final byte[] blueprintBytes = FileManagerFactory.getFileManager().retrieveFile(blueprintFile.getExternalStorageIdentification());        // Science it doesn't, we'll do...        final byte[] blueprintBytes = blueprintFile.getContent().getBytes();        final InputStream inputStream = new ByteArrayInputStream(blueprintBytes);        response.setContentType("text/plain");        response.setHeader("Content-disposition", "attachment; filename=blueprint.jpeg");        final ServletOutputStream writer = response.getOutputStream();        DWGProcessor.generateJPEGImage(inputStream, writer, 1000);        return null;    }