473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Help with base64 encoding

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
Nov 18 '05 #1
3 4548
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.

"mm" <me*****@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #2
What about urlencode the base64 string before sending it.

Server.UrlEncode("dDwtMTI3OTMzNDM4NDs7Psy+A21q+f5l 5HEOayec3EEb/MkF")

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

Tommy,

"mm" <me*****@hotmail.com> wrote in message news:<O2**************@TK2MSFTNGP12.phx.gbl>...
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

Nov 18 '05 #3
mm
Thanks guys, your advise payed off, it works now

Best
MM
"mm" <me*****@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jerry | last post by:
Hi People ! I have an Urgent Problem and greatly appreciate your help: My script sends multipart emails using the MAIL_MIME package from pear.php.net Works great so far but..... ...
0
by: SPG | last post by:
Hi, I have an application that is sending out emails to my clients. Some mails are text based and some are html based depending on their preferences. Text emails are fine. I am setting up...
3
by: wenmang | last post by:
Hi, I ma thinking whether to use Base64 encoding to encode the binary content in the XML file. I have done some simple calculations, it seems to me that the size for encoded content increases by...
1
by: mvdevnull | last post by:
hey all currently i use the following piece of code to check if the string passed to me can be converted to base64, it is not very efficient and bad, can someone please suggest another of doing...
3
by: marsandys | last post by:
Hello, I have this code below, which I am trying to have it send HTML formatted mail with embedded images. I can get this to send the mail, but it spits out a bunch of junk . I know this should...
2
by: kevin | last post by:
DISCLAIMER: I know what the words mean (i.e. by definition), but I in know way pretend to understand the specifics of either, therefore I may need a basic primer before I can accomplish this task,...
11
by: prats | last post by:
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using QT from python. I am able to take input...
13
by: aruna.eies.eng | last post by:
i am currently trying to convert data into binary data.for that i need to know how to achieve it in c language and what are the libraries that we can use. so if any one can send me a sample code or...
10
by: pycraze | last post by:
Hi , I am currently trying to implement base64 encoding and decoding scheme in C . Python has a module , base64 , that will do the encoding and decoding with ease . I am aware of OpenSSL having...
1
by: maxxxxel | last post by:
Hi Can anyone help me with some asp code , I changed the code to use CDO.message instead of the old cdont.sys to send mail from a ASP webpage which works fine. Our problem is that when we send...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.