OA系统05-在内存中创建图像

package com.bjsxt.controller;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.sql.rowset.serial.SerialException;
import java.awt.image.BufferedImage;
import java.io.IOException;

@WebServlet("/codeServlet")
class CodeServlet extends HttpServlet{
   @override
   protected void service(HttpServletRequest req,HttpServletResponse resp)throws SerialException, IOException {
      //在内存中创建图像
      int width = 110,height = 30;
      BufferedImage image = new BufferedImage(width,herght,BufferedImage,TYPE_INT_RGB);
   }

}


上一篇:Http协议详解


下一篇:2.12 Go二叉树数据结构的应用