Re: PHP, DB, images, ODBC

From: Date: Wed, 27 Mar 2002 11:22:28 +0000
Subject: Re: PHP, DB, images, ODBC
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90352@lists.php.net to get a copy of this message
You will have to build another page that receive a parameter(let's say the index of the pic from the database) and return the image. In this page you'll have to set the Content-Type first using: header("Content-Type: image/jpeg") or header("Content-Type: image/gif") or header("Content-Type: image/png") depends of what you need. After that you will find the pic in the database and return it with echo. -- --------------------------------- Cirstoiu Aurel Sorin Interakt Online Support http://www.interakt.ro/ "David Juras" <tech2.yxendis@wanadoo.fr> wrote in message news:003101c1d4be$d4e77d60$4d01a8c0@Yxendis... Hi, I'm working with PHP and ODBC to get images stored in a database (Blob fields). But I experiment little problems to display these pics. Has anyone any information about PHP/ODBC/images ? Thanks, Bilbo

« previous php.general (#90352) next »