WP7 图片上传

发布于 2024-10-26 15:35:57 字数 286 浏览 0 评论 0原文

我正在尝试创建一个 WP7 应用程序,将图像上传到我的网站。我尝试使用 FTP,但微软已从 WP7 中删除了该功能。显然,目前唯一的其他方法是调用在我的网站上运行的 Web 服务,该服务将为我执行 ftp 上传。

很简单,我将图像转换为字节数组并向我的网站发出网络请求。

但我不确定客户端或服务器双方的代码。我正在使用 asp,但我没有太多看,我已经将图像转换为字节数组,但我不知道如何发送这些数据。我找到的所有信息都是针对网络应用程序或 Windows 表单,而不是 WP7。

谢谢,

詹姆斯

I'm trying to create a WP7 application that will upload an image to my website. I tried using FTP but microsoft have removed that feature from WP7. Apparently the only other way at the moment is to call a webservice running on my website that will do the ftp upload for me.

Simple enough, i turn the image into a byte array and make a web request to my website.

But i'm not sure on the code on either side, client or server. I'm using asp but i'm not having much look, i've got as far as turning the image into a byte array but i dont know how i go about sending this data. All the info i've found is for web apps or windows forms not WP7.

Thanks,

James

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

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

发布评论

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

评论(1

傲娇萝莉攻 2024-11-02 15:35:57

嘿,Cadab,您查看过此链接 还没有?它看起来像客户端和服务器端应用程序的代码。我自己没有尝试过,但我很确定它会起作用。

您应该看看这个问题,因为它有代码并且看起来非常接近达到你想要完成的目标。

您可能还想查看此问题

尽管这些是用标准 silverlight(浏览器或客户端)编写的,但只需稍作修改即可适用于 WP7。

让我知道这是否有帮助。

Hey Cadab have you checked out this link yet? It looks like the code for the application on the client as well as server side. I have not tried this myself but I'm pretty sure it would work.

You should take a look at this question because it has code and seems pretty close to what your trying to accomplish.

You might also want to check out this question.

Although these were written in standard silverlight (browser or client) they should work for WP7 with minor modifications.

Let me know if this helps.

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