note 73202 added to function.swfbitmap.construct

From: Date: Tue, 13 Feb 2007 09:24:43 +0000
Subject: note 73202 added to function.swfbitmap.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-123306@lists.php.net to get a copy of this message
I found a workaround for the load jpg problem for SWFBitmap. Errormessage: (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: $f = $s->addFill(new SWFBitmap( file_get_contents("image.jpg"))); But if you set imagedata to a variable first, it will works fine: $img = file_get_contents("image.jpg"); $f = $s->addFill(new SWFBitmap( $img )); Greets Christian http://www.webpicasso.de ---- Server IP: 212.124.37.9 Probable Submitter: 194.97.157.130 (proxied: unknown) ---- Manual Page -- http://www.php.net/manual/en/function.swfbitmap.construct.php Edit -- https://master.php.net/note/edit/73202 Del: integrated -- https://master.php.net/note/delete/73202/integrated Del: useless -- https://master.php.net/note/delete/73202/useless Del: bad code -- https://master.php.net/note/delete/73202/bad+code Del: spam -- https://master.php.net/note/delete/73202/spam Del: non-english -- https://master.php.net/note/delete/73202/non-english Del: in docs -- https://master.php.net/note/delete/73202/in+docs Del: other reasons-- https://master.php.net/note/delete/73202 Reject -- https://master.php.net/note/reject/73202 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123306) next »