我已经解决了这个问题。我正在使用代码来解决问题。
这里的“路径”是可以使用的本地文件系统路径:
Environment.getExternalStorageDirectory()。getAbsolutePath()
public static String loadImageFromWebOperations(String url, String path) { try { InputStream is = (InputStream) new URL(url).getContent(); System.out.println(path); File f = new File(path); f.createNewFile(); FileOutputStream fos = new FileOutputStream(f); try { byte[] b = new byte[100]; int l = 0; while ((l = is.read(b)) != -1) fos.write(b, 0, l); } catch (Exception e) { } return f.getAbsolutePath(); } catch (Exception e) { System.out.println("Exc=" + e); return null; }}希望这可以帮助 :)。



