Convert it to a gif, jpg, png or xbm, then encode it in base 64. I have used a small standalone script I found in the usenet group comp.lang.perl.tk to do this if you don't want to write your own.
Take a look at Tk::PhotoEncoder. (Not written by me, I just found it useful.)
In reply to Re: tk: icon in bar (win32)
by thundergnat
in thread tk: icon in bar (win32)
by fcvw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |