GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Prima::Image::base64(3) User Contributed Perl Documentation Prima::Image::base64(3)

Prima::Image::base64 - hard-coded image files

Handles base64-encoded data streams to load images directly from source code.

        my $icon = Prima::Icon->load_stream(<<~'ICON');
                R0lGODdhIAAgAIAAAAAAAP///ywAAAAAIAAgAIAAAAD///8CT4SPqcvtD6OctNqLcwogcK91nEhq
                3gim2Umm4+W2IBzX0fvl8jTr9SeZiU5E4a1XLHZ4yaal6XwFoSwMVUVzhoZSaQW6ZXjD5LL5jE6r
                DQUAOw==
                ICON
        print $icon->save_stream;

Decodes BASE64_STRING and tries to load an image from it. Returns image reference(s) on success, or "undef, ERROR_STRING" on failure.
Same as "load_image" but returns a "Prima::Icon" instance.
Saves image into a datastream and return it encoded in base64. Unless $OPTIONS{codecID} or "$image-"{extras}->{codecID}> is set, tries to find the best codec for the job.

Returns encoded content on success, or "undef, ERROR_STRING" on failure.

Dmitry Karasik, <dmitry@karasik.eu.org>.

Prima, Prima::Image, Prima::image-load

2025-07-04 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.