【发布时间】:2010-01-06 06:18:44
【问题描述】:
我在一台计算机上复制了一个文件,我需要从另一台计算机访问该文件。 我不确定,为此使用哪种协议或技术? 请为此提供任何提示..
更新:
我使用的是 Ubuntu Linux 系统。 我使用了代码:
File f = new File("//192.168.1.157/home/renjith/picture.jpg");// 192.168.1.157 is the ip of the computer, where I have the picture file
Image image = ImageIO.read(f);
但它给出了一个例外:
javax.imageio.IIOException: Can't read input file!
at javax.imageio.ImageIO.read(ImageIO.java:1275)
我也共享了 renjith 文件夹。
【问题讨论】: