List:General Discussion« Previous MessageNext Message »
From:Keith C. Ivey Date:July 15 2003 10:53pm
Subject:Re: How can I display images from a mySQL Database in a web page?
View as plain text  
On 15 Jul 2003 at 18:31, Dan Anderson wrote:

> > I think there is a way to insert binary image data in your html, but
> > is there any particular reason you need to do that?
> 
> Yes, my client's server is running with particularly restrictive PHP
> safe mode settings and has informed me that dynamic images are a /must
> have/.  :: bangs head against wall. starts to bleed ::

Dynamic images don't require inserting binary data into your HTML.  
(It is possible to use 'data:' URLs to insert arbitrary data into 
your HTML, but very few broswers support it, and it's not relevant 
for your purposes).

The image and the HTML will come from separate HTTP requests, so all 
that's necessary is for you to put the appropriate URLs into the HTML 
and set up a corresponding PHP program to return the data, with the 
"Content-type: image/gif" (or whatever) header, and possibly others, 
depending on what you're trying to do.

Except for the process of retrieving the data from the database, this 
has nothing to do with MySQL, so questions related to HTML, PHP, and 
HTTP headers should be directed to another list.

-- 
Keith C. Ivey <keith@stripped>
Tobacco Documents Online
http://tobaccodocuments.org

Thread
How can I display images from a mySQL Database in a web page?Dan Anderson15 Jul
  • Re: How can I display images from a mySQL Database in a web page?colbey15 Jul
  • Re: How can I display images from a mySQL Database in a web page?Partap Davis16 Jul
    • Re: How can I display images from a mySQL Database in a web page?William R. Mussatto16 Jul
    • Re: How can I display images from a mySQL Database in a web page?Dan Anderson16 Jul
      • Re: How can I display images from a mySQL Database in a web page?Keith C. Ivey16 Jul
      • RE: How can I display images from a mySQL Database in a web page?Jef S16 Jul
  • Re: How can I display images from a mySQL Database in a web page?Peter Burden16 Jul
  • RE: How can I display images from a mySQL Database in a web page?M. Bader16 Jul