请给个思路:来着有分 response.setContentType(你的文件类型对应的mime头); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 直接把这个OutputStream写到response中去? String strContent = "234242423424234"; int iLength = strContent.length(); response.setContentType("application/x-msdownload"); //application/doc -> *.doc response.setHeader("Content-Disposition", "attachment; filename=".concat("normal.bin")); response.setContentLength(iLength); response.getOutputStream().write(strContent.getBytes()); response.getOutputStream().flush(); response.getOutputStream().close(); 请高手指教一个Java Swing的问题. netbeans中打开新窗口的问题 Java 反射问题,求高手帮忙 一个漂亮的GUI Propertise p=System.getProperties().list(System.out)为何有错? java中怎样调用C#写的dll 新手提问,关于数据类型的转换 有什么JBuilder的好书啊?推荐一下啦~ 各位JAVA大哥,我正式向M$告别了,以后就投入JAVA的怀抱,照顾一下小弟啊~~~ 在resin中配置jive,提示整天说找不到jiveHome Java Plug-in(Java插件)是做什么用的呢? 到底错在哪? 在线等待~~~急
String strContent = "234242423424234";
int iLength = strContent.length();
response.setContentType("application/x-msdownload"); //application/doc -> *.doc
response.setHeader("Content-Disposition", "attachment; filename=".concat("normal.bin"));
response.setContentLength(iLength); response.getOutputStream().write(strContent.getBytes());
response.getOutputStream().flush();
response.getOutputStream().close();