hi,
I have this...
But the base64 encoding for the image data that is created is only
Which cannot be the entire image encoded and when used via
I just get an image place holder not the image, so the source must be invalid.
What am I missing?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I have this...
Code:
use MIME::Base64 qw( encode_base64 );
# read image file to base64 and set for result
open (my $img, '/images/banners/' . $page . '_' . $banner[0]{'RecID'} . '.' . $banner[0]{'Ext'}) or die $!;
my $raw = do { local $/ = undef; $img; };
$result->{data}->{img} = encode_base64( $raw );
But the base64 encoding for the image data that is created is only
R0xPQigweDU1NWFmZGMp
Which cannot be the entire image encoded and when used via
Code:
<img src="data:image/jpeg;base64,R0xPQigweDU1NWFmZGMp">
What am I missing?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music