String picpath = "http://xxxDEN/00.jpg";
try {
URL url = new URL(picpath);
InputStream inputStream = url.openStream();
OutputStream outputStream = new FileOutputStream(new
File("d:"+File.separator+"a.jpg"));
int temp=0;
byte[] b = new byte[500];
while((temp=inputStream.read(b))!=-1){
outputStream.write(b,0,temp);
}
outputStream.flush();
inputStream.close();
outputStream.close();
} catch (Exception e) {
e.printStackTrace();
}
从流中得到图片. 弄个缓冲区读取写入. flush一下. 到手

ok技术可行的. 开始完善.
public void downloadPic(String path, String
locationpath){
String picpath = path;//"http://exxxxx00.jpg";
try {
URL url = new URL(picpath);
InputStream inputStream = url.openStream();
(new
File("d:"+File.separator+"somepic"+File.separator+locationpath)).mkdirs();
OutputStream outputStream = new FileOutputStream(new
File("d:"+File.separator+"somepic"+File.separator+locationpath+File.separator+count+".jpg"));
count ++;
int temp=0;
byte[] b = new byte[500];
while((temp=inputStream.read(b))!=-1){
outputStream.write(b,0,temp);
}
outputStream.flush();
inputStream.close();
outputStream.close();
} catch (Exception e) {
e.printStackTrace();
}
}
定义一个用来计数的变量. 给不同的图片当文件名.
int count = 0;
public void getItAll(){
Content content = getContent();
for(String s : content.getPathArray()){
System.out.println(s);
downloadPic(s,content.getTitle());
}
count = 0;
}
OK了.