如何从桌面发送文件? [英] How to Send files anywhere from desktop?

查看:90
本文介绍了如何从桌面发送文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想开发一个应用程序,用于将文件从桌面发送到笔记本电脑,手机和标签

使用c#。所以有人可以帮我这个。

Hi I want to develop an application for send file from desktop to laptop, mobile and tab
using c#.So can anybody help me for this.

推荐答案

谷歌的C#套接字,你会发现很多有用的样本。
Google for "C# sockets" and you will find lots of useful samples.


我想回答你的这个问题。有很多方法,您可以使用自己的服务器(或网站)让不同的用户相互通信并共享他们的文件,或者让他们直接沟通。在您的情况下,您希望他们直接将文件发送到其他移动设备。您可以考虑使用套接字,使用带有.NET框架的Windows操作系统通过设备发送数据。



使用套接字C# [ ^ ]

http://msdn.microsoft.com/en-us/library/system.net.sockets.socket(v=vs.110).aspx [ ^ ]



涉及的主要技术是蓝牙支持。如果设备支持蓝牙协议,那么您可以通过蓝牙发送文件。在Windows中,您可以执行这些操作并通过蓝牙将文件发送到可以通过蓝牙进行通信的任何设备。 阅读这些文件 [ ^ ]以了解有关此主题的更多信息。也可以使用IrDA(红外线),但我认为没有人会使用这个标准来共享资源。



我的选择:我想使用Web服务器方法,创建一个服务器,用户可以在那里共享资源,因为蓝牙仅在设备彼此靠近时才可用。
I would like to answer this question of yours. There are many methods to this, you can use your own server (or a website) to let different users to communicate with each other and share their files, or you can let them directly communicate. In your case you want them to directly send the files to other mobile devices. You can consider using the Sockets, to send the data through a device using a Windows OS with .NET framework.

Working with Sockets in C#[^]
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket(v=vs.110).aspx[^]

The main technique involved in this, is the bluetooth support. If the device supports a bluetooth protocol then you can send the files via bluetooth. In Windows, you can perform these actions and send the files over bluetooth to any device that can communicate via bluetooth. Read these documents[^] to learn more on this topic. IrDA (Infrareds) can also be used, but I don't think anyone would be using this standard for sharing the resources.

My choice: I would like to use the web server method, to create a server from where the users would share their resources, because bluetooth is only available if the devices are close to each other.


这篇关于如何从桌面发送文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆