Reply to Re: Instantiate from memory / mysql select

Re: Instantiate from memory / mysql select new!
by colin, 16 years 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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important