Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: PerlTk GNOME3 alternate icon file shown as blank square

by dbuckhal (Chaplain)
on Dec 23, 2024 at 16:48 UTC ( [id://11163370]=note: print w/replies, xml ) Need Help??


in reply to PerlTk GNOME3 alternate icon file shown as blank square

Hi kaza_perl_ip, another option for Photo is to use base64 encoded data using the -data argument instead of the -file argument.

A solution I used was to store the base64 encoded value in a variable and pass it to the -data argument to Photo.

Untested sample foo code...
my $encodedImg = q{very long multi line multi line multi line multi line multi line multi line multi line multi line multi line multi line multi line encoded data}; my $can_encImg = $canvas->Photo( -data => $encodedImg );

Hope it helps!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11163370]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2025-11-18 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.