使用“云”在同一应用程序的用户之间传输文件贮存

发布于 2024-10-08 12:27:41 字数 424 浏览 8 评论 0原文

我正在构建一个 WPF 应用程序,需要与其他用户交换一些非常小的 xml 文件。我目前正在研究对等网络,但我需要文件的发送者能够在接收者也不在线的情况下发送。我不想自己托管服务,我希望用户将与他们本地交互的其他用户存储在他们的计算机上,例如仅使用名称和 GUID 或电子邮件地址来识别他们。

你们对如何解决这个问题有什么建议吗?我的一厢情愿是如果有一种免费或廉价的服务,用户可以通过我的程序连接到公共 API 并上传他们的文件。当接收者用户登录时,它将检查服务并以某种方式进行身份验证,并下载 XML 文件,以便程序可以导入它。

我使用 IMAP 库制定了一个解决方案,其中 XML 文件附加在电子邮件中并发送到接收者的电子邮件帐户。接收器上的程序检查电子邮件并阅读附件。这工作正常,但不是很流畅,而且还填满了用户收件箱并发送了垃圾邮件。

非常感谢任何建议。

此致 奥拉

I am building an WPF app that need to exchange some very small xml files with other users. I'm currently looking into peer2peer networking, but I need the sender of the files to be able to send without the receiver being online also. I do not want to host a service myself, and I want the users to store the other users they interact with locally on their machine, for example just a name together with a GUID or email adress to identify them.

Do you guys have any suggestions on how to solve this? My wishful thinking would be if there was a free or cheap service where users could connect via my program to a public API and upload their files. And when the receiver user logs on, it would check the service and authenticate somehow, and download the XML files so it could be imported by the program.

I have made a solution with a IMAP library where the XML files are attached in the email and sent to the receivers email account. The program on the receiver checks the email and read the attachment. This works ok, but is not very slick and also filling up the users inbox and sent items with garbage..

Any suggestions is greatly appreciated.

Best regards
Ola

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧桑㈠ 2024-10-15 12:27:41

这是一个想法:

通常,块存储卷被视为附加到虚拟机的额外“驱动器”。然后您就可以使用它,就像它是一个隐喻的“USB 闪存键”一样,您可以与其他人共享。

  1. 创建存储卷
  2. 将其附加到您的 VM 并复制您的
    其上要共享的数据
  3. 从您的 VM 中分离该卷
  4. 您的好友,将其附加到他的 VM
  5. 他然后复制文件,瞧!

所有这些都可以通过网络界面完成,您无需执行任何网络步骤。

您现在所需要的只是一个有能力的云极客、一壶咖啡和一些令人信服的东西。

This is one idea:

Normally, Block Storage volumes are seen as extra 'Drives' that you attach to a Virtual Machine. You could then use this but as if it was a metaphorical 'USB flashkey' that you would share with the other person.

  1. Create the storage volume
  2. Attach it to your VM and copy your
    data-to-be-shared on it
  3. Detach the volume from your VM
  4. Your Buddy, attaches it to his VM
  5. He then copies the files and voila!

All this could be done through a web interface and you wouldn't have to do any networking steps.

All you need now is a capable Cloud Geek, a pot of coffee and some convincing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文