----- Original Message -----
From: "David Halliday" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 01, 2007 5:56 AM
Subject: Re: [php-list] PHP to display images in html docs
Many thanks, Rob and Michael, for your help.
Have tried both ways and the image displays as
expected.
Just one more point, please:
Is there a way of converting an image to a string? I
have seen it in some scripts where people display an
image by echoing such a string, without the need to
insert a pic in the normal way. It is usually a long
string of character, something like
"chaKOFVWOEI5ZQGkLl5GI+vw1LDRws ... ,etc"
Things like "fread" or "file_get_contents" do not
actually produce the string itself, if you know what I
mean!
Many thanks anyway for answering my previous question
Regards,
David
----------------------------
Hello David,
This is possible with Internet Explorer but I do not know
if all browsers support it.
It can be done in the same way the pictures are inserted into an email. You
have to send the right headers before the HTML, something like
"content-type: multi-part disposition: in-line". Then the picture can be
added as an attachment in a format that can convey binary.
I would first explore browser compatibility and then go and look at the
source of some HTML emails with pictures in them.
Thanks, Rob.