显示另一台计算机的图片 [英] display a pic from another computer
本文介绍了显示另一台计算机的图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i需要帮助才能显示保存在另一台计算机上的图片。我知道pic的路径,但我找不到连接到其他计算机的方式,即使我可以,我需要一个返回文件的函数...
Hi,
i need help about display a picture that saved in another computer.I know the path of pic but i could't find the way of connect to other computer and if even i could, i need a function which returns the file...
推荐答案
使用 WebClient [ ^ ]。
参考 - 使用vb.net / c#下载远程文件; Chris Bitting [ ^ ]
.NET框架有许多网络协议。让我算一下:
1)FTP(直接文件传输);请参阅System.Net
[ ^ ]为此。
2)HttpClient
[ ^ ](用于HTTP通信)
3 )TcpListener
[ ^ ] /TcpClient
[ ^ ](用于TCP / IP通信)
你可以选择一个对你来说很容易的!在我看来,TCP / IP协议会更简单。这还不是全部,已经建立了支持这些服务的框架。 WCF就是其中之一。您可以构建一种服务,允许客户端相互通信并共享其资源。
通过互联网创建由连接设备使用的Web服务 [ ^ ]
.NET framework has many networking protocols. Let me count:
1) FTP (direct file transfer); SeeSystem.Net
[^] for this.
2)HttpClient
[^] (for HTTP communication)
3)TcpListener
[^]/TcpClient
[^] (for TCP/IP communication)
You could chose one that may be easy for you! In my opinion, TCP/IP protocol would be simpler. That is not all, there are framework already built to support these services. WCF is one of them. You can build a service that allows clients to communicate with each other and share their resources.
Creating a Web Service to be consumed by connected Devices via Internet[^]
可以作为起点:套接字代码示例 [ ^ ]。
Could be a starting point: Socket Code Examples[^].
这篇关于显示另一台计算机的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文