in reply to Base64 to GD::Image

I have never done it, and this is untested, but i would guess :
use MIME::Base64; use GD; ## get data into $var64 ... my $jpeg = decode_base64($var64); my $gd_image = GD::Image->newFromJpegData($jpeg); ## or, even : my $gd = GD::Image->newFromJpegData(decode_base64($var64));

Once again, untested, but based on your problem and the perldoc's, thats my guess :)
$ perl -e 'do() || ! do() ;' Undefined subroutine &main::try

Replies are listed 'Best First'.
Re: Re: Base64 to GD::Image
by stormwolfen (Acolyte) on Dec 20, 2001 at 03:07 UTC
    What you reccomended above... is what I thought and was playing with the past couple days. However, I was corrected and also looked at GD.pm only to find there is no newFromJpegData, also, it seems that it only wants a file handle.

    If you check under my nodes, there is several replies when I was working on trying to figure out the newFromJpegData problem.

    --- Scott