文章列表
diskFile上传文件
- 博客分类:
- java
/**
*
* @author 郑阳文
*
* 使用apache的commons-io-2.4.jar,commons-fileupload-1.2.2.jar完成处理文件上传的Servlet
*/
public class UploadServlet extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletExceptio ...
package com.test;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Random;
import javax.imageio.ImageIO;
public class ImageNum { ...