I use the Microsoft Http Client Libraries to make a multi-page request from Windows Phone 8 to the server. It contains the contents of a string having a json string, and streaming content having an image stream. Now I get the status "OK" and request requests on the server. but the logs say that the server cannot get the image file name.
content.Add(new StreamContent(photoStream), "files", fileName);
where photoStream is the image stream, “files” is the name of the content, and file name is the name of the image file.
Thus, the value of the header should be:
Content-Disposition: form-data; name=files; filename=image123.jpg
but actually it is:
Content-Disposition: form-data; name=files; filename=image123.jpg; filename*=utf-8''image123.jpg
Why is he adding the " ; filename*=utf-8''image123.jpg" part . This is problem?
Please let me know any reasons / possibilities that I cannot download an image from WP8.