in reply to Inline images in PODin thread pod and images
How did you create the src string?
See URI::data - URI that contains immediate data
use strict; use warnings;
use URI; use IO::File;
my $u = URI->new("data:");
$u->data(join '', IO::File->new( 'camel.favicon.png' , '<:raw' )->getl
print qq[<p><img src="$u">\n];
FWIW, new questions go in Seekers Of Perl Wisdom
Welcome, see The Perl Monks Guide to the Monastery, see How do I post a question effectively?, Where should I post X?
data:-URLs are nice, but they have limits: Old browsers and especially IE<7 can't handle them, IE<9 has some arbitary limits for the data URL length. See http://en.wikipedia.org/wiki/Data_URI_scheme for a good overview.
Base64 encoding can be done from the command line, as documented in MIME::Base64.
I think I simply mailed it to myself and copied the base64 encoding.
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (307 votes). Check out past polls.