js弹出新窗体,显示图片

window.showModalDialog('URL',window,"dialogheight:700px;dialogwidth:600px;center:yes;resizable:0;status:0");

显示图片
byte[] data =exhibitService.getTbPhoto(photoId);
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("image/jpeg");
OutputStream out = response.getOutputStream();
out.write(data);
out.flush();
out.close();

你可能感兴趣的:(js弹出新窗体,显示图片)