MIME Base-64 encoding

101 views
Skip to first unread message

do...@people.net.au

unread,
Sep 15, 2011, 8:28:00 AM9/15/11
to harbou...@googlegroups.com
Hi all

Does anyone have or know of routines for encoding and / or decoding MIME Base-64 encoded data?

Thanks
Doug

apolinar

unread,
Sep 15, 2011, 10:00:29 AM9/15/11
to Harbour Users
I have no personal experience on that but I think you should see
contrib subfolder of harbour and watch under
hbtip and hbcurl

Apolinar

do...@people.net.au

unread,
Sep 15, 2011, 8:27:09 PM9/15/11
to harbou...@googlegroups.com
Thanks Apolinar

Thanks for the tip (pun not originally intended)

/contrib/hbtip does indeed contain such code in encmthd.c

TIPEncoderBase64_Encode()
TIPEncoderBase64_Decode()

The accompanying class files don't seem to make sense as we have:

METHOD Encode( cData )

  RETURN cData

Which doesn't appear to do any decoding.

Your advice should save me quite some time.
Thanks
xProgrammer (Doug)


Teo Fonrouge

unread,
Sep 16, 2011, 1:01:34 AM9/16/11
to harbou...@googlegroups.com
Doug,

On Sep 15, 2011, at 7:28 AM, do...@people.net.au wrote:

Hi all

Does anyone have or know of routines for encoding and / or decoding MIME Base-64 encoded data?

Check the sample that contains the funcs to encode/decode base 64 strings
in the Harbour tree at:

harbour/tests/base64.prg


best regards,

Teo

apolinar

unread,
Sep 16, 2011, 2:00:44 AM9/16/11
to Harbour Users
Reply all
Reply to author
Forward
0 new messages