Hi again:

I said:

I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL.

---
-philip said:

imagecreatefromjpeg takes a *filename* not the actual contents of the file itself.

Yes, you are correct that in the statement:

$image = imagecreatefromjpeg($fileContent);

The variable $fileContent should be a file name -- but it's the contents of the file that the function uses. So, what's the difference between a filename and its contents? Is there a header I should add? Or does the routine require a read operation?

I'll look at some other functions.

Thanks for your help.

tedd
--
--------------------------------------------------------------------------------
http://sperling.com/

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

Reply via email to