各位大神,我最近在做一个项目,要下载新浪微博相册里的图片。我已经能够下载它相册列表里面的小图片了,但是,不知道,能不能下载到放大之后的图片,跪求各位大神解答。

解决方案 »

  1.   

    通过httpclient可以查看页面的源码,应该可以找到大图片地址
      

  2.   

          HttpClient client = new HttpClient();     
            GetMethod get = new GetMethod("http://images.sohu.com/uiue/sohu_logo/beijing2008/2008sohu.gif");     
            client.executeMethod(get);     
            File storeFile = new File("c:/2008sohu.gif");     
            FileOutputStream output = new FileOutputStream(storeFile);     
            //得到网络资源的字节数组,并写入文件     
            output.write(get.getResponseBody());     
            output.close();