I am serializing a xml and compress to ToBase64String stores in the database as nvarchar, while loading decompress the string from 'FromBase64String' throws 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 a non-white space character among the padding characters."
I referred to this How to check for a valid Base64 encoded string but not worked for me ? is there anyway to remove unwanted characters from the string.
below is a part of serialized string
5gAAAB+LCAAAAAAABADsvQdgHEmWJSYvbcp7f0r1StfgdKEIgGATJNiQQBDswYjN5pLsHWlHIymrKoHKZVZlXWYWQMztnbz33nvvvffee++997