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.
精彩评论