SWFBitmap jpg to swf?

From: Date: Fri, 08 Feb 2002 06:53:09 +0000
Subject: SWFBitmap jpg to swf?
Groups: php.windows 
Request: Send a blank email to php-windows+get-11905@lists.php.net to get a copy of this message
Why does this: $img="image.jpg"; 10 $fp = fopen($img,"rb"); 11 $i = fread($fp,filesize($img)); 12 $s = new SWFBitmap($i); Produce this: Fatal error: Sorry, can't tell what type of file ÿØÿà is in C:\Inetpub\wwwroot\dawndusk\serlient\test.php on line 12 When I print $i; I get the correct binary jpg text. I am taking the code from php.net and it did work before I switched to 4.1.1 Any help is appreciated!

« previous php.windows (#11905) next »