in reply to Recreating a binary file from hex representation
Or be lazy and use a module that does base64? ;-)
HTH,