<input type="file" name="file">

解决方案 »

  1.   

    if under windows platform:
    File inputFile = new File("\\hostname\dir\filename");
      

  2.   

    我觉得需要对方机器有这样的服务,例如ftp/telnet等等。或者由你自己写的服务器什么的
    例如RMI什么的或者对方德web服务器上有这样的处理程序。只是知道文件和机器名响读出来就随便读出来,那微软早就倒闭了
      

  3.   

    另外,你的系统是b/s,还是c/s结构,都要说清楚
      

  4.   

    你的文件想通过什么方式连接,如果你有文件的url,就可以url.openStream()来读取。