从网络驱动器访问图像 [英] Accessing Image from a Network Drive
问题描述
大家好!!!!
你能帮我解决一下我的问题。我认为这很容易,但我无法弄清楚如何做到这一点。
我使用Visual Studio 2008在我的计算机上创建了一个应用程序并在windows上运行7 OS。我的问题是我想访问网络驱动器上的图片文件(比如IP服务器:10.0.0.1)。
这是我的代码,它当我按下按钮时会执行。
PictureBox1.Image = Image.FromFile( \\10.0.0.1\C $ \ Image.\\picture.jpg)
我想在我的电脑上显示picture.jpg。真正的问题似乎是什么。
我真的需要你的帮助...在此先感谢..
\ Image.\\picture.jpg)
我正在尝试显示picture.jpg在我的电脑上。真正的问题似乎是什么。
我真的需要你的帮助...提前感谢..
< blockquote> C
只能由管理员评估,因此您应该首先直接与每个人共享读取权限的图像文件夹。
Hello everyone!!!
Can you please help me about my problem. I think this is very easy but I cannot figure out on how to do this.
I have created an application on my computer using Visual Studio 2008 and running on a windows 7 OS. My problem is I want to access the picture file on a network drive (say a LAN server with IP: 10.0.0.1).
This is my code, and it will execute when I pressed a button.
PictureBox1.Image = Image.FromFile("\\10.0.0.1\C$\Image\picture.jpg")
I am trying to display the picture.jpg on my computer. What really seems to be the problem.
I Really Need Your help...thanks in advance..
\Image\picture.jpg")
I am trying to display the picture.jpg on my computer. What really seems to be the problem.
I Really Need Your help...thanks in advance..
C
is only assessable by the administrator, so you should start by sharing the image folder directly with read access for everybody.
这篇关于从网络驱动器访问图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!