日期:2014-05-17 浏览次数:21050 次
try { BufferedImage image = ImageIO.read(new FileInputStream("D:\\cmsFile\\1.jpg")); if (image != null) { ImageIO.write(image, "JPEG", response.getOutputStream()); } } catch (IOException e) { System.out.println(file + "图片管理图片不存在"); } }
<img style="display: none;" src="<%=baseURL%>/imgCmsImageMain.do?image=<%=imgId%>" onload="javascript:DrawImage(this,600);">