note 4252 rejected from function.imagegif by didou

From: Date: Wed, 21 May 2003 21:16:23 +0000
Subject: note 4252 rejected from function.imagegif by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48782@lists.php.net to get a copy of this message
Note Submitter: kokos@lac.lviv.ua ---- Hi. Here is a small trick: If You want to generate a page with a text data (eg. table) and an image (eg. barchart) both based on a form data submitted, You can generate the image and embed it into the page directly by using "<IMG SRC='data:image/png;base64,...'>" (put the base64-encoded image data instead of ellipsis ;) Drawbacks: 1. I've tested this under NS and IE, and latter doesn't recognize the "data:" scheme... :( Does it employ any other similar mechanizm? 2. It would be great to have a possibility to get an image data directly into string variable, thus avoiding all the temporary file mess. Best wishes. KoKos.

« previous php.notes (#48782) next »