从 WP7 上传 XML 文件,可能吗?如何上传?
我正在研究一个系统,用户可以将 xml 文件上传到网站以供其他人稍后下载。我在这个部门的经验很少,真的不知道从哪里开始,所以这是一个相当简单的问题,我该如何实施这样的事情?我需要 ASP 托管还是其他东西?
I'm looking into a system where users can upload xml files to a website for others to download later on. I have very little experience in this department and don't really know where to begin so this is a fairly straightforward question, how do I go about implementing such a thing? Will I need ASP hosting or something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您需要某种形式的网站/服务托管。站点/服务必须接受 XML 文件的提交。有很多方法可以做到这一点,具体取决于您想要什么以及您希望实现的安全性。
您的网站/服务还必须为用户/应用程序提供浏览和下载上述 XML 文件的方法。同样,有很多方法可以做到这一点,并且安全性可能是这里的一个考虑因素。
我建议调查您可用/所需的选项,然后在此处提出更具体的问题。
更新
关于您将在电话上做什么。您可能需要使用 HttpWebRequest。
从服务器获取数据的最简单方法是使用 WebClient,但根据安全性,您可能需要使用 HWR。
如果您没有任何托管,那么您所获得的内容可能会影响您可以做的事情。传输数据的安全性及其存储方式将影响您需要执行的操作。
我将从调查/研究 HTTP 的基础知识开始。
Yes, you will need some form of hosting for a web site/service. The site/service must accept the submission of the XML files. There are lots of ways of doing this depending on quite what you want and the security you wish to implement.
Your web site/service must also provide a way for the user/application to browse and download the said XML files. Again there are lots of ways to do this and again security may be a consideration here.
I'd suggest investigating the options available/desirable to you and then asking more specific questions here.
Update
With regards to what you'll be doing on the phone. You'll probably want to POST the data from the APP using HttpWebRequest.
The easiest way to get data from a server is using WebClient but depending on security you may need to use HWR.
If you don't have any hosting then what you get will likely impact what you can do. The security of the data transmitted and how it is stored will impact what you need to do.
I'd start by investigating/researching the basics of HTTP.