Hi,

> How can I find out the size of an image I got stored as a blob?
> 
> Is it at all possible?

yes, when you upload a file, the server will put it in the /tmp
directory.
This file will be destroyed at the end of the script by PHP, so you need
to save it (in this case you'll create a blob with that file) before the
end.
Your script will receive the /tmp filename, the original filename, the
file size and the mime type in 4 variables.
If you want to know the height and width of an image, use the
imagesize() function on the /tmp file.

For more information, see:
http://www.php.net/manual/features.file-upload.php

> Tarjei

-- 
Best Regards,

David Guerizec - Open Source Developer @ AurorA R&D

The Boulder Pledge : "Under no circumstances will I ever purchase anything
offered to me as the result of an unsolicited e-mail message. Nor will I
forward chain letters, petitions, mass mailings, or virus warnings to
large numbers of others. This is my contribution to the survival of the
online community." 


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to