Document resDocument = new Document(resElement); response.setContentType("application/xml"); response.setHeader("Cache-Control", "no-cache"); response.setHeader("Charset","Gb2312"); XMLOutputter xoutput=new XMLOutputter(Format.getPrettyFormat().setEncoding("Gb2312")); xoutput.output(resDoc ...
public void downLoadFile(File f,String filename,HttpServletResponse response) throws IOException { BufferedInputStream br = new BufferedInputStream(new FileInputStream(f)); byte[] buf = new byte[1024]; int len = 0; response.reset(); response.setContentType("application/x-msdownload;cha ...
beyondsanli
搜索本博客
我的相册
Ed2ef40c-0044-376b-ae87-96fbb4175e76-thumb
未命名2
共 17 张
存档
最新评论