之前我用对象流(objectstream)来传送图片对象IMAGEICON,结果发现速度太慢了,请问有没有其他很快的方法,最好可以达到跟IE取图片差不多的速度?
解决方案 »
- ContextLoaderListener和DispatcherServlet有神马关系?
- Linux下使用wrapper 搭建tomcat自启动服务webservice环境问题
- 系统时间转换为时间格式为2009年9月26日
- jsp+mysql乱码问题
- jsp本页调用javabean的问题
- 如何使用thickbox 提交表单后 同时关闭当前层 显示回原来的页面
- 求助:webservice+SSH+CXF 遇到异常
- jsp中的小问题。。
- 个位从javabean中获取数据库数据是通过传ResultSet还是一个javabean类!?
- 求助:import javax.servlet.*;
- $$$$$$ 散分! 恳求高手看看我的代码 能不能找到工作
- 麻烦大家给个意见
URLConnection con = new URL(url).openConnection();
// inform connection that input and output will take place
con.setDoInput(true);
con.setDoOutput(true);
// specify not to use cache
con.setUseCaches(false);
con.setDefaultUseCaches(false);
// specify content type
con.setRequestProperty("Content-Type","application/octet-stream");InputStream in = con.getInputStream();这是我之前用的方法,速度太慢了