Instantiate from memory / mysql select

See all posts See thread Reply

Re: Instantiate from memory / mysql select new!
by colin, 15 years, 6 months ago
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:
$handle = new upload($_FILES['image_field']);
header('Content-type: ' . $handle->file_src_mime);
echo $handle->Process();
die();

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