判断网络图片地址获取的问题
try {
URL url = new URL(path);URLConnection uc = url.openConnection();
InputStream in = uc.getInputStream();
flag="yes";
} catch (Exception e) {
flag="no";
}
若是本地 图片 地址
File file = new File(path);
if(file.exists()){
)
判断网络图片地址获取的问题
try {
URL url = new URL(path);}
若是本地 图片 地址
File file = new File(path);
if(file.exists()){
)