简体   繁体   English

WP7图片上传

[英]WP7 Image Upload

I'm trying to create a WP7 application that will upload an image to my website. 我正在尝试创建一个将图像上传到我的网站的WP7应用程序。 I tried using FTP but microsoft have removed that feature from WP7. 我尝试使用FTP,但微软从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. 显然,目前唯一的另一种方式是调用在我的网站上运行的web服务,它将为我执行ftp上传。

Simple enough, i turn the image into a byte array and make a web request to my website. 很简单,我将图像转换为字节数组并向我的网站发出Web请求。

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. 我正在使用asp,但我没有太多的外观,我已经将图像转换为字节数组,但我不知道如何发送这些数据。 All the info i've found is for web apps or windows forms not WP7. 我发现的所有信息都是针对网络应用程序或Windows窗体而不是WP7。

Thanks, 谢谢,

James 詹姆士

Hey Cadab have you checked out this link yet? 嘿Cadab你看过这个链接了吗? 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. 虽然这些是用标准的Silverlight(浏览器或客户端)编写的,但它们应该适用于WP7,只需稍加修改即可。

Let me know if this helps. 如果这有帮助,请告诉我。

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

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