<?xml version="1.0" encoding="windows-1252"?>
<node id="555742" title="Re: Binary string to base64" created="2006-06-16 06:57:46" updated="2006-06-16 02:57:46">
<type id="11">
note</type>
<author id="491819">
ioannis</author>
<data>
<field name="doctext">
base64 is meant for encoding high-bit data into a form suitable for
transmission under the 7bit rules. It has nothing to do with
compression.

If you want to compress a 64-byte string of 0's and 1's, use &lt;b&gt;pack &lt;/b&gt;.

&lt;code&gt;
# The sender packs it
my $p = pack 'b4' , $str ;

# And the receiver unpacks it like this:
print unpack 'b4', $p;
&lt;/code&gt;</field>
<field name="root_node">
555733</field>
<field name="parent_node">
555733</field>
</data>
</node>
