开发者

Image in URL-encoded Windows Phone 7

开发者 https://www.devze.com 2023-02-05 03:56 出处:网络
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.

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

精彩评论

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