[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: CDATA Section [binary data in...]

  • From: "Gordon, Simon" <Simon.Gordon@s...>
  • To: XML-Dev Mailing list <xml-dev@i...>
  • Date: Fri, 29 Oct 1999 14:23:32 -0600

binary abc
I found it at : http://www.normos.org/ietf/rfc/rfc2045.txt . Check out pages
23 - 25

Basically the encoder works like this:
Base64Table[] = "ABC...abc...1234567890+/"
ForEach 24 bits in input stream
    ForEach 6 bits in 24 bits
        OutputChar Base64Table[6 bit value]
    NextFor 6 bits
NextFor 24 bits

There are special cases when the input stream is not a multiple of 24 bits
long (the decoder has to know when to stop so the encoder outputs one or two
pad characters "=").

The decoder takes the input stream and outputs the corresponding 6 bit
values. When it encounters an equals, it commits what bits it has left into
a byte, clears the other bits, outputs the resulting byte and stops.

Regards,

Simon Gordon

-----Original Message-----
From: Simon St.Laurent [mailto:simonstl@s...]
Sent: Friday, October 29, 1999 13:22
To: XML-Dev Mailing list
Subject: RE: CDATA Section [binary data in...]


At 02:40 PM 10/29/99 -0400, Dan Vint wrote:
>I've seen reference to base64 many times now, where can I find a spec for
this?

Base64 is described in section 6.8 of RFC 2045, normally available at
http://www.ietf.org/rfc/rfc2045.txt. (I can't get the URL to open today,
though.)


Simon St.Laurent
XML: A Primer, 2nd Ed.
Building XML Applications
Inside XML DTDs: Scientific and Technical
Sharing Bandwidth / Cookies
http://www.simonstl.com

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN
981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following
message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.