学习java web技术ing

2014年2月25日

java代码,io实现复制文件

摘要: 主要代码:try {//获取image文件夹的绝对路径 String uploadfile = request.getSession().getServletContext().getRealPath("/image"); //System.out.println("uploadfile="+uploadfile);//把“\”替换成“/”,为什么是四个反斜杠,还在研究中 String uploadpath=uploadfile.replaceAll("\\\\","/"); String image_file=r 阅读全文

posted @ 2014-02-25 11:31 学技术中的小明 阅读(199) 评论(0) 推荐(0)

导航