http://www.perlmonks.org?node_id=513880


in reply to Generating pngs with Mason

I don't think this is what you're wanting, but on the off chance you're trying to embed the image data directly in a Web page rather than just linking to an image, you can check out the "data" URL scheme:

<img src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH hhx4dbgYKAAA7" alt="Larry">

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^2: Generating pngs with Mason
by water (Deacon) on Dec 04, 2005 at 02:00 UTC
    Thanks, Ovid!

    The PNG is short enuff to stuff in the tag itself as you suggested; works like a charm.

    I could struggle to figure out what was wrong with the dhanlder, but this moves me along, so I'll go with the simple.

    thanks!

Re^2: Generating pngs with Mason
by water (Deacon) on Dec 04, 2005 at 09:47 UTC

      IE is certainly a consideration one should ponder and after giving this quite a bit of thought, I can only conclude

      I friggin' hate IE!

      What a rotten, stinkin' miserable piece of crap!

      I hate that browser with a passion. In all fairness, I'm not as "anti-Microsoft" as most of my compatriots but when it comes to IE, my zealotry is limitless. I hate that damned browser. It's caused me no end of pain in its lack of support for standards. Unfortunately, as the lowest common denominator, we've no choice but to pander to it. How incredibly frustrating.

      Side note: anyone else notice how they said their users don't want tabs but they're adding them in the latest version?.

      Cheers,
      Ovid

      New address of my CGI Course.

      Hmmm ... I hit 50,000 XP (archbishop) when I posted this. Maybe the universe is trying tell me something. Damned if I know what it's saying, though.