W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

RE: Does libwww support Base 64 Encoding?

From: Eric Johnson <EricJ@data-tech.com>
Date: Tue, 30 Jan 2001 11:48:30 -0500
Message-ID: <93C6DB419FAAD411BC1200B0D078E3CDC4B2@MTMITCHELL>
To: "'www-lib@w3.org'" <www-lib@w3.org>
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.

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
> 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 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:50:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC