我使用com.sun.image.codec.jpeg.JPEGImageEncoder在我的web应用程序中处理JPEG图像,如图表和其他图像。现在,我正在更新我的机器以使用JDK7,但是这个版本不推荐使用这个类。以下是我需要更改的代码:publicvoidprocessChart(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{response.setContentType("image/jpeg");out=response.getOutputStre
我使用com.sun.image.codec.jpeg.JPEGImageEncoder在我的web应用程序中处理JPEG图像,如图表和其他图像。现在,我正在更新我的机器以使用JDK7,但是这个版本不推荐使用这个类。以下是我需要更改的代码:publicvoidprocessChart(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{response.setContentType("image/jpeg");out=response.getOutputStre