URL url = new URL(fileUrl);
InputStream is = url.openStream();

解决方案 »

  1.   

    String path1=(new URL("file://"+path)).getPath();
                File f=new File(path1);
      

  2.   

    用URLConnection也行!URL url = new URL(fileUrl);
    URLConnection urlConnection=url.openConnection();
    InputStream is=urlConnection.getInputStream();
      

  3.   

    http://expert.csdn.net/Expert/topic/1909/1909332.xml?temp=.7851831
    回答问题的进去领分