简体   繁体   English

如何获取文件到WP7?

[英]How to get files to WP7?

Let's say I'm writing a eBook reader for Windows Phone 7. Now the first thing that the user will need to do is add some books to his device, and since I don't offer a online book store or similar service, the only option is file transfer from his PC to the phone. 假设我正在为Windows Phone 7编写电子书阅读器。现在,用户需要做的第一件事就是在他的设备上添加一些书籍,因为我不提供在线书店或类似的服务,选项是从PC到手机的文件传输。 Is he able to do this, how? 他能做到这一点,怎么样? Then how do I access this file. 然后我如何访问此文件。 Can this file be placed in Isolated Storage of my app? 这个文件可以放在我的应用程序的独立存储中吗? I was searching around and didn't find any solution, in fact I believe that similar scenario is currently impossible but I just wanted to hear your toughs on the problem and probably some workaround ideas. 我一直在寻找并没有找到任何解决方案,事实上我认为类似的情况目前是不可能的,但我只是想听听你对问题的强硬态度,可能还有一些解决方法。

I haven't seen any way to add files from the desktop the phone is connected to. 我还没有看到任何方法从手机连接的桌面添加文件。 However, you can build your own software for the desktop that uses a WCF service and allows connections from the phone. 但是,您可以为使用WCF服务的桌面构建自己的软件,并允许来自手机的连接。 The phone can download files from the desktop WCF service. 手机可以从桌面WCF服务下载文件。 See a similar concept here , you can implement the concept discussed in the post the other way round. 在这里看到一个类似的概念 ,你可以反过来实现帖子中讨论的概念。

HTH, indyfromoz HTH,indyfromoz

Would you not be able to download the ebooks using some kind of webservice/http? 您是否无法使用某种webservice / http下载电子书?

(Obviously you'll need a website, somewhere for this) (显然你需要一个网站,在某处)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM