[SPRING] FTP서버의 이미지 프리뷰
·
FrameWork/Spring
MAPPER에서 DB 받아서 [CONTROLLER] @RequestMapping(value="/imgPreview") public void preview(HttpServletResponse response, long id) throws Exception { Map map= new HashMap(); map.put("id", id); Map commonFile= commonService.selectFile(map); if (commonFile == null) return; MediaType mediaType = null; String imagePath = ""; switch ((String)commonFile.get("EXTENSION")) { case "JPEG": case "JPG": mediaType..