in reply to Tk show image from web
you dont need to download the image into a file: you can use LWP to grab the image and store its content inside a variable(you might need to transform it in base64) and use the -data option while building the Tk::Photo object.
-data => string Specifies the contents of the image as a string. The string can co +ntain base64 encoded data or binary data. The format of the string mu +st be one of those for which there is an image file format handler th +at will accept string data. If both the -data and -file options are s +pecified, the -file option takes precedence.
L*
PS I said TITS but you took it literally (see below: the original code posted and now changed, used breast as search word ;)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tk show image from web
by IB2017 (Pilgrim) on Nov 16, 2019 at 17:56 UTC | |
by Anonymous Monk on Nov 17, 2019 at 23:21 UTC | |
by Anonymous Monk on Dec 17, 2019 at 14:00 UTC | |
by Anonymous Monk on Nov 16, 2019 at 23:42 UTC |