我得到了起始 url,得到了一个 for() 但现在不知道如何使用 webclient 来下载它们,有人可以帮忙吗?需要哪些“进口”?我正在使用-
System.in.WebClient client = new WebClient();
byte [] bytedata = client.DownloadData(url);
client.DownloadFile(url,downloadPath);
我得到了起始 url,得到了一个 for() 但现在不知道如何使用 webclient 来下载它们,有人可以帮忙吗?需要哪些“进口”?我正在使用-
System.in.WebClient client = new WebClient();
byte [] bytedata = client.DownloadData(url);
client.DownloadFile(url,downloadPath);
您必须使用库在 java 中使用 FTP 来获取文件。
最常见的是公地之一:http ://commons.apache.org/net/