Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:00:39+00:00 2026-05-23T12:00:39+00:00

I have a simple WCF service that will analyse a raw text extracted from

  • 0

I have a simple WCF service that will analyse a raw text extracted from a .pdf or a .doc file.

99% of the uploaded string are ok but in some cases, the server will raise a Bad Request exception

The remote server returned an unexpected response: (400) Bad Request.

After investigating the faulty text, I did find out that the problem is related to a Form Feed character (ascii / unicode #12).

The easy solution is to remove those characters before uploading the string but in my case, I don’t have the control over every clients that will consume the WCF service.

So, is there any server side alternative that would allow me to upload this special characters (and any other character that might lead the the same exception)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:00:40+00:00Added an answer on May 23, 2026 at 12:00 pm

    If you are using basic or wshttp binding, safe way to pass that kind of strings around is to use base64 encoding on both client and server side. In your case i would suggest using byte[] which in terms will be serialized into a base64 string.

    Unfortunately there is no way to handle bad requests on the server side, that i know about.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple WCF service that I call server side from code behind
I have a simple WCF service that i'm communicating with Asynchronously. The thing i
I've been trying to do a simple restful wcf service that will return JSON.
I have a simple wcf Service Contract that works fine if I use the
I have a simple WCF service that carries out a simple operation: [OperationContract] DoSomething
I have set up a WCF service that will accept both JSON and XML
I have a WCF service. I built from an xsd file from another department.
I have a simple WCF service serving up notifications to and from an app.
I have a simple WCF service: public Order[] GetOrdersByStatus(int statusid) { OrderService os =
I have created a simple wcf service which used the WCF Service Library template.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.