|
|
| P is for Practical | |
| PerlMonks |
Re: Store image in stringby kejohm (Hermit) |
| on Mar 14, 2011 at 02:21 UTC ( #893018=note: print w/ replies, xml ) | Need Help?? |
|
You could store the image data encoded as something like Base64, and then decode it when you print it to file, like this:
See the MIME::Base64 manpage for information about Base64 encoding, as well as examples of encoding files. Update: Oops, sorry Grandfather, you were too quick for me. Another Update: Link fixed.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||