class="java"> public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("image/jpeg"); File f=new File("d:/3/1.PNG"); BufferedImage bi=ImageIO.read(f); OutputStream os=response.getOutputStream(); ImageIO.write(bi, "png", os); }