之前我用对象流(objectstream)来传送图片对象IMAGEICON,结果发现速度太慢了,请问有没有其他很快的方法,最好可以达到跟IE取图片差不多的速度?

解决方案 »

  1.   

    applet:
    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();这是我之前用的方法,速度太慢了