private ResumeService resumeService;
@Override
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
String resumeGuid = ServletRequestUtils.getRequiredStringParameter(request, "resumeGuid");
PortraitDTO portraitDTO = resumeService.loadPortraitByResumeGuid(resumeGuid);
response.addHeader("Content-Type", portraitDTO.getType());
response.addHeader("Content-disposition", "filename=" + portraitDTO.getName());
ServletOutputStream out = response.getOutputStream();
out.write(portraitDTO.getContents());
return null;
}