Re: Interbase lob field on the web

From: Date: Tue, 14 Aug 2001 00:03:28 +0000
Subject: Re: Interbase lob field on the web
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62535@lists.php.net to get a copy of this message
I dunno about the Interbase part, but you need to have a separate script just for the image, since that's a separate HTTP request from a web-page. This separate file needs to send out the right header for GIF images: <?php header("Content-type: image/gif"); ?> You then need to get the GIF data out of Interbase, and echo it out. Since echo-ing error messages will not be visible in image data, you may wish to use http://php.net/log_error and view your Apache logs for any errors you think you might be getting. You can also comment out the header line and see what you get by surfing directly to the image URL. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Alex.Tesi <alex.tesi@plangroup.it> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Monday, August 13, 2001 8:15 AM Subject: Interbase lob field on the web Hi i have a problem printing a lob field containing an image. The database i use is Interbase 6.0 I have a blob/lob field with a gif image inside an i like to print this image on the web. Can you help me? Bye Alessandro

« previous php.general (#62535) next »