Re: images in DB
| From: | Daniel Convissor | Date: | Fri, 01 Dec 2000 18:58:43 +0000 |
| Subject: | Re: images in DB | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28254@lists.php.net to get a copy of this message | ||
Heya:
> Copy the image out of the database to a temp location and run GetImageSize()
> on it.
Of course, it'd be best to store the image dimesions in the databae so one
need not go through such a process. When inserting a new image, add the
dimensions at the same time. To update existing records, do the above once.
create table images (
image blob;
width smallint;
height smallint;
);
La la la,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409