note 92826 deleted from class.swfbitmap by danbrown

From: Date: Wed, 16 Sep 2009 16:35:30 +0000
Subject: note 92826 deleted from class.swfbitmap by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160730@lists.php.net to get a copy of this message
Note Submitter: david dot jiang at muchdj dot com ---- I found a workaround for the load jpg problem for SWFBitmap. Error message: (Catchable fatal error: SWFMovie::save() [function.SWFMovie-save]: Initial Jpeg marker not found! in /loalhost/test/swfjpg/swfjpg.php on line 23 ) This doesnt work: <?php $f = $s->addFill(new SWFBitmap( file_get_contents("image.jpg"))); ?> But this will works fine: <?php $f = $s->addFill(new SWFBitmap((fopen('image.jpg','rb'))); ?>

« previous php.notes (#160730) next »