Has anyone ever managed to create a Tk::Photo object by supplying binary data (as opposed to base64) to the -data option?
Update: To clarify, I already have the image data in memory as it is being built with GD and wish to avoid either writing it to a file or converting it to base64.
According to the the Tk::Photo docs:
Photos are created using the Photo method. Photo supports the following options:
-data => string
Specifies the contents of the image as a string. The string can contain base64 encoded data or binary data.
...
In reply to Tk:Photo -data with binary data? by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |