note 67439 deleted from function.imagecreatefromstring by nlopess

From: Date: Wed, 07 Jun 2006 22:32:07 +0000
Subject: note 67439 deleted from function.imagecreatefromstring by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-113695@lists.php.net to get a copy of this message
Note Submitter: heinemann dot juergen AT hjcms dot de Reason: useless ---- another way for build and read Images <?php ## Build/Encode ob_start(); $a = dirname( __FILE__ ) . "/dewie.png"; header('Content-Type: image/png'); $im = imagecreatefrompng( $a ); imagepng( $im ); $a = ob_get_contents(); ob_end_clean(); $b = base64_encode( $a ); ## Decode $im = imagecreatefromstring( base64_decode( $b ) ); if ( ! headers_sent() ) { header('Content-Type: image/png'); imagepng( $im ); } ?>

« previous php.notes (#113695) next »