Re: Create Thumbnail from Blob online

From: Date: Tue, 16 Jul 2002 13:14:22 +0000
Subject: Re: Create Thumbnail from Blob online
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107859@lists.php.net to get a copy of this message
Well, if you're just going to show your image (no resizing or other image operations) you don't need to use gd at all. You could just change the Content-Type and print. <snippet> header("Content-Type: $mimetype"); print($imagedata); </snippet> /lasso (lasso@lassoweb.nu) Tommi Trinkaus wrote:
Hi, i stored some jpegs in an mysql-database (one field for data, one for type) and i'm able to download them and to show them in an <img> tag. But wat i want is to use the stored data to create a thumbnail to show it within the browser without creating a file - how can i pass the mysql-blob directly to a gd-function like imagecreate() or imagejpg() ?? (gd-library is working well) thank you for any answer, tommi


« previous php.general (#107859) next »