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 8252377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:32:59+00:00 2026-06-08T00:32:59+00:00

I has a fairly standard method that base64-encodes a string prior to sending that

  • 0

I has a fairly standard method that base64-encodes a string prior to sending that string over the wire to a client. When the communication was SOAP, everything worked fine but now that everything is running through the .NET version of JSON, the base64 decoding is blowing up with the error:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

I noticed that .NET was adding a \” to the beginning and end of the string so I removed those and then I checked the length and noticed that it was not a multiple of 4 so I padded the beginning and end as needed with equal signs – nothing helped. I still get the same error noted above no matter what I do.

I am stuck and nobody else’s answers to similar questions has helped – any ideas (and, no, I cannot get rid of .NET…)?

The string from the server is:

zkWv1UuGZX08g1s/k/Rp4edZJ/QkuQO88HxpWtpsSfZt4kdWotuqzDy7+YgrB/JUdmuU7FB7thtK1yah+bW0CL3NPP/WGeQHjL/pvpoaOVAiDODnXOvONwuMINpSTa6HvxHj5mJxDvIoEhUwzchFfxfjnDW6tGutBRCBhGHYTK4=

The string received on the client prior to me mucking around with it is:

\”zkWv1UuGZX08g1s\/k\/Rp4edZJ\/QkuQO88HxpWtpsSfZt4kdWotuqzDy7+YgrB\/JUdmuU7FB7thtK1yah+bW0CL3NPP\/WGeQHjL\/pvpoaOVAiDODnXOvONwuMINpSTa6HvxHj5mJxDvIoEhUwzchFfxfjnDW6tGutBRCBhGHYTK4=\”

  • 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-06-08T00:33:00+00:00Added an answer on June 8, 2026 at 12:33 am

    The problem is that JSON escapes a bunch of characters and returning a string escapes its own set of characters. There are some great posts in here about Streaming WCF JSON repsonses that can help out on the return but nothing that addressed the incoming. I switched to XML from JSON.

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

Sidebar

Related Questions

Fairly simple question: I have an init method on my class that has the
I've got a UI with a fairly standard look and feel. It has a
I'm currently trying to scrape a website that has fairly poorly-formatted HTML (often missing
I have a web application I've developed that has a fairly complex save routine.
I have a fairly complex view that has multiple forms, lots of validations on
I'm fairly new to Spring and I need a bean that has two properties
I have a fairly complicated installer that I'm writing in Wix that has a
I am currently working on a MYSQL project which has a few fairly standard
I have a master project that's using a fairly standard source tree approach +
Below is a fairly standard piece of Java code which has been translated to

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.