Re: A black thumbnail.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux