> Header("Content-type: image/jpeg");
> echo $Images;
> I can't figure out how to create the header.  There's lots of examples
> of how to do the above, but I have yet to stumble across an example
> which allows you to write the header into a file....

You could make a PHP script that generate the picture?

Like this:

/* Picture file need an ID!! */
$connection = mysql_connect("host", "user", "pwd");
$query = 'SELECT imagefiled FROM imagetabel WHERE id = '.$id;
$result = mysql_query($query);
if(mysql_num_rows($result) > 0) {
   //You got the image
   header("Content-type: image/jpeg");
   $row = mysql_fetch_row($result);
   echo $row[0];
else {
   //No image with that id!

HTML file where the image is:

<img src="phpfile.php?id=23" border=0 alt="">

Dont know if you misunderstand you?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to