开发者

Image in URL-encoded Windows Phone 7

in my windows开发者_StackOverflow phone 7 application I have to send a image throught a normal POST method, in which the file's entire binary contents are URL-encoded in silverlight. I've the image in stream, file e byte[]. How can I do this stuff?

Thx guys


Try sending the result of

HttpUtility.UrlEncode(System.Text.Encoding.UTF8.GetString(yourByteArray);

or similar. You could easily verify using UploadStringAsync.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜