RE: Does libwww support Base 64 Encoding?

Hi Ailleen and Hermann,

I am new to using the w3c library so I do not know about the support
for 64 base encoding support in the library.

I do know that Sam Blackburn has an easy to use class in his WFC code.
I modified this class for a previous project to work outside of the
rest of the WFC in a couple of hours.  I just needed to replace his
CByteArray with standard arrays.

http://www.samblackburn.com/wfc/
The class is called:
CBase64Coding - Simple base64 encoder/decoder. 

-Eric J. Witherspoon
eric%j@data-tech.com (take out the %)

-----Original Message-----
From: Hermann Gundel [mailto:hgu@software-ag.de]
Sent: Tuesday, January 30, 2001 11:02 AM
To: Ailleen Lien
Cc: www-lib@w3.org
Subject: Re: Does libwww support Base 64 Encoding?


Hi Ailleen,

Ailleen Lien wrote:
> 
> Hi, ALL,
> 
>      Does libwww support Base 64 Encoding?  Does anyone know how to use
the
> functions?

As far as I understand the code base, it is supported in that you can
set the appropriate protocol headers, but there is no routine that
implements the actual encoding/decoding. You have to provide that
routine(s) yourself (e.g. as uuencode/uudecode wrappers) and make them
known to libwww in the init phase with

HTFormat_addCoding ("base64", yourBASE64encoder, yourBASE64decoder,
1.0)  resp.
HTFormat_addTransferCoding ("base64", yourBASE64encoder,
yourBASE64decoder, 1.0)

A rather short description can be found in HTFormat.html

> Thanks for any response.
> 
> Ailleen Lien

Just my 2 Cents
Hermann
-- 
Hermann Gundel
Software AG, Darmstadt, Germany
R&D DBMS Open Systems
tel: +49-6151-921127
email: Hermann.Gundel@softwareag.com

Received on Tuesday, 30 January 2001 11:46:50 UTC