Hi PeiYong,
                Thanks for your help. As i am new to this mailing list i
don't know how to access the Code Base and make the necessary .dll
files. I will give it a try and then i will confirm u about the Base64
problem.
Thanks once again for ur timely help.
Regards
Tarun

-----Original Message-----
From: PeiYong PY Zhang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 9:30 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Problem while using Base64 class


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to