Embedding Images in Perl
If you want to distribute a perl script with an embedded binary, for instance, an image, you can do so by converting the binary into base64 (printable text) and then back into binary at runtime.
For an app to convert your binary file into base64 for Windows, take a look at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q191239
Use this as so:
base64 -e file.gif >base64file.txt
For an app to convert your binary file into base64 for Windows, take a look at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q191239
Use this as so:
base64 -e file.gif >base64file.txt

0 Comments:
Post a Comment
<< Home