Help with base64 encoding

  • Thread starter Thread starter mm
  • Start date Start date
M

mm

Hello everyone,

I have an asp.net application executing under .net framework 1.1 that sends
a base64 encoded string token to a remote server running weblogic
application server. for some odd reason when the token reaches its
destination the '+' symbols in the token are converted to spaces which are
not valid base64 characters.

I am using HttpWebRequest to send the data and the content type is
application/x-www-form-urlencoded and the method is 'POST'

I have tried to change the content type to text/plain but this does not
work.

Thanks in advance for your help

best
MM
 
How does it send the string? A + symbol translates to a space when
Url-decoding a string.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
What about urlencode the base64 string before sending it.

Server.UrlEncode("dDwtMTI3OTMzNDM4NDs7Psy+A21q+f5l5HEOayec3EEb/MkF")

This will replace the '+' character with '%2b'.

Tommy,
 
Back
Top