class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I don't want to store images as files, but rather as MySQL BLOB(s), is it possible to instantiate with the data returned from mysql? (or a variable/memory?)
You can store the processed image in your database, if you call Process() without an argument. For instance, to output the image content directly to the browser, you would do:
But you can instantiate the class only with a file (local or uploaded). So you would have to dump your BLOB field in a file before using the class on it.Reply
I don't want to store images as files, but rather as MySQL BLOB(s), is it possible to instantiate with the data returned from mysql? (or a variable/memory?)
Cheers
Dave
But you can instantiate the class only with a file (local or uploaded). So you would have to dump your BLOB field in a file before using the class on it.