Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Binary string to base64

by ioannis (Monsignor)
on Jun 16, 2006 at 10:57 UTC ( #555742=note: print w/replies, xml ) Need Help??


in reply to Binary string to base64

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 pack .
# The sender packs it my $p = pack 'b4' , $str ; # And the receiver unpacks it like this: print unpack 'b4', $p;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://555742]
help
Chatterbox?
marto boggles at code he wrote > 10 years ago....

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-11-22 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (320 votes). Check out past polls.

    Notices?