Tarun Gera wrote:
> hi!
>
> I have to use the Base64 encoding and decoding functionality. For this i
> made a sample application on win32 platform using VC and compiled it.
> But on running the same program it gave me Access violation exception.
> Code part that i tested is :
>
> Line 1. int outputLength = 0;
> Line 2. int outputLength1 = 0;
> Line 3. XMLCh ch3[9] = {'t','e','s','t','d','a','t','a','\0'};
> Line 4. XMLCh* ch1 = Base64::encode(ch3, 9, &outputLength);
> Line 5. XMLCh* ch2 = Base64::decode(ch1,outputLength1);
>
> Debugging this code gave "Access Violation Exception" while decoding the
> encoded Base64 data at line 5.Please help me in this regard as i am
> unable to find out the problem in this code.
>
> Thanks
> Tarun
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Tarun,
We have a revised interface for Base64, which is available from the
latest code base.
I've modified your samples code segment and it is compilable and
executable, please
help verify the result, thanks.
unsigned int outputLength = 0;
unsigned int outputLength1 = 0;
XMLByte ch3[9] = {'t','e','s','t','d','a','t','a','\0'};
XMLByte* ch1 = Base64::encode(ch3, 9, &outputLength);
XMLByte* ch2 = Base64::decode(ch1, &outputLength1);
PeiYong
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]