Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

Passing a filepath to a web service - Problem

$
0
0
I am trying to pass a string: c:\Books\image.jpg to a web service with no success. I tried to encode it as: <Code> returnString = HttpUtility.UriEncode(pathString)</Code>

The encoding works fine but I still get the Error 400 (Bad request). I get the same error if I pass a string with a dot such :(This is not good.) But if I remove the dot, the request goes through. What causes the error and how do we solve? The encoding does not seem to work. Thanks for helping.

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>