.net - WCF error when sending special characters -


i have simple wcf service analyse raw text extracted .pdf or .doc file.

99% of uploaded string ok in cases, server raise bad request exception

the remote server returned unexpected response: (400) bad request.

after investigating faulty text, did find out problem related form feed character (ascii / unicode #12).

the easy solution remove characters before uploading string in case, don't have control on every clients consume wcf service.

so, there server side alternative allow me upload special characters (and other character might lead the same exception)?

if using basic or wshttp binding, safe way pass kind of strings around use base64 encoding on both client , server side. in case suggest using byte[] in terms serialized base64 string.

unfortunately there no way handle bad requests on server side, know about.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -