27.11.2012 Views

Working with the various stream classes in POCO. - POCO C++ ...

Working with the various stream classes in POCO. - POCO C++ ...

Working with the various stream classes in POCO. - POCO C++ ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Encod<strong>in</strong>g and Decod<strong>in</strong>g<br />

> <strong>POCO</strong> provides filter <strong>stream</strong> <strong>classes</strong> for encod<strong>in</strong>g and decod<strong>in</strong>g<br />

data <strong>in</strong> Base64 and HexB<strong>in</strong>ary format.<br />

> Both Base64 and HexB<strong>in</strong>ary can be used to encode arbitrary<br />

b<strong>in</strong>ary data us<strong>in</strong>g only pr<strong>in</strong>table ASCII characters.<br />

> Base64 uses digits, upper and lowercase characters, as well as '+'<br />

and '-' to encode groups of 6 bits. The encoded data takes by a<br />

factor 1.33 as much space as <strong>the</strong> orig<strong>in</strong>al data.<br />

> HexB<strong>in</strong>ary uses digits and <strong>the</strong> characters 'A' to 'F' to encode<br />

groups of 4 bit. The encoded data takes twice <strong>the</strong> space.<br />

> See RFC 4648 for details.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!