> 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

Read the documentation for SWFBitmap(), it says it takes a filename for a
jpeg as a parameter.
So try

$img="image.jpg";
$s = new SWFBitmap($img);

/Martin

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to