Paul Maddox

Software development team leader specialising in Microsoft Visual C# and C++ from the Northwest of England. Experience working in a globalised business and team; understanding of enterprise business operation and practices; experience reporting to executive management Skills in numerous languages and technologies; knowledge of formal software development lifecycle; experience of architecture design

Tuesday, October 3, 2006

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

0 Comments:

Post a Comment

<< Home