displaying image

S

Steve

Hello all,
Is there any way to send an image to the HTTP client rather than the
client getting the image from the HTTP server?


Steve
 
J

Jim Higson

Steve said:
Hello all,
Is there any way to send an image to the HTTP client rather than the
client getting the image from the HTTP server?

Huh? If the client gets the image from the server you do send it to them.
Can you clarify what you are trying to do?
 
T

Toby Inkster

Steve said:
Is there any way to send an image to the HTTP client rather than the
client getting the image from the HTTP server?

"ftp://" URLs are supported in most web clients, though some firewalls may
block outgoing FTP connections. "data:" is supported by a more limited set
of clients (just Opera and Gecko IIRC) but doesn't have the firewall
implications.
 
S

Steve

To clarify the question. Instead of using <img src="image.gif"> in the HTML
page, is there any way the server can just the image to the client as an
HTML page?


Steve
 
S

Steve Pugh

Steve said:
Is there any way to send an image to the HTTP client rather than the
client getting the image from the HTTP server?

Are you talking about "server push" as opposed to the ordinary "client
pull"?

This was the 'next big thing' back in 97/98 but never took off - the
web simply doesn't work that way.

There are some possible solutions that might work (e.g. include the
image via a Java applet or Flash movie; or using XMLHTTP) depending
on exactly what you are trying to achieve.

Steve
 
S

Steve Pugh

Steve said:
To clarify the question. Instead of using <img src="image.gif"> in the HTML
page, is there any way the server can just the image to the client as an
HTML page?

Okay, now even more confused.

Please elaborate further. What exactly would a user be doing to get
this image/page? What exactly would you want the server to send? What
exactly would end up being displayed by the browser?

Steve
 
C

Chris Morris

Steve said:
To clarify the question. Instead of using <img src="image.gif"> in the HTML
page, is there any way the server can just the image to the client as an
HTML page?

No. What are you trying to do?

(Well, sufficiently fancy server-side scripts might, depending on
what you're trying to do, but that would almost certainly be
pointless.)
 
J

Jan Clemens Faerber

Steve said:
To clarify the question. Instead of using <img src="image.gif"> in the
HTML page, is there any way the server can just the image to the client as
an HTML page?


Steve

I wonder how you can combine html and base64.
When you send an e-mail in html format with an image
then you have something like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
<IMG SRC="cid:[email protected]" ALIGN="top"
ALT="" BORDER="0">
</BODY>
</HTML>

--=-r2Ww/+auCthia9blxNRZ--

--=-Mlq035MjzkmnzKkOrSRq
Content-ID: <[email protected]>
Content-Disposition: attachment; filename=faerber.jpg
Content-Type: image/jpeg; name=faerber.jpg
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AGEDASIA
....
here a lot of code ...
....
--=-Mlq035MjzkmnzKkOrSRq--

Can the encoding be done inside html?
 
T

The Doormouse

Steve said:
To clarify the question. Instead of using <img src="image.gif"> in the
HTML page, is there any way the server can just the image to the
client as an HTML page?

Yes. You mean something like Http://MyPage/image.gif
You need to read a book on basic HTML.

The Doormouse
 
J

Jan Clemens Faerber

The said:
You need to read a book on basic HTML.

Books are fine but an icq contact told me not to buy books because it is a
wast of money. You have it all on the net.
I said you can take books with you.
But after some time you get crazy with books.
You don´t recognize it first but after some time
you will realize the disadvantages of books compared to online information.
Especially html is described for beginners in some books
in such a way that you can forget about many things
you learned because they are deprecated.
Or they leave some things away in books that are essential for doing.
 
J

Jeffrey Silverman

No. What are you trying to do?

(Well, sufficiently fancy server-side scripts might, depending on
what you're trying to do, but that would almost certainly be
pointless.)

Huh? "Yes" is the answer.

That is, if the question is, "Can a web server serve images by themselves
(as in, 'not in the context of an HTML page,' or, 'without having to use
the <img> tag')?

Well, yes, of course Web servers can.

Of course, the OP did not really describe his/her problem sufficiently,
so I am assuming a bit. And you know what they say and all...
 
J

Jeffrey Silverman

Books are fine but an icq contact told me not to buy books because it is a
wast of money. You have it all on the net.
I said you can take books with you.
But after some time you get crazy with books.
You don´t recognize it first but after some time
you will realize the disadvantages of books compared to online information.
Especially html is described for beginners in some books
in such a way that you can forget about many things
you learned because they are deprecated.
Or they leave some things away in books that are essential for doing.


No way! Books are way better than info on the Web***. Books are printed
documents and everyone knows that (1) printed documents are always correct
and truthful and (2) the Web is full of incorrect information -- "you
can't trust what you read on the Web!"

--
Jeffrey D. Silverman | (e-mail address removed) **
Website | http://www.newtnotes.com

(** Drop "pants" to reply by email)











































***I hope you people have your facetiousness detectors on. Vocal tone is
so hard to express in plain text, nu?
 
T

Toby Inkster

Jan said:
I wonder how you can combine html and base64.
When you send an e-mail in html format with an image
then you have something like this
<snip>

The clever bit in that example isn't the base64 encoding, but the
message/multipart Content-Type. I don't think an awful lot of browsers
support that though.

You can however embed base64 images using "data:" URLs.
 
J

Jan Clemens Faerber

Jeffrey said:
No way! Books are way better than info on the Web***. Books are printed
documents and everyone knows that (1) printed documents are always correct
and truthful and (2) the Web is full of incorrect information -- "you
can't trust what you read on the Web!"

You mean that there are different opinions.
e.g. ecma Standards can be ordered for free!
But you can look them up here aswell:
http://www.ecma-international.org/publications/standards/Standard.htm
One can say - I don´t trust the ecma Standards.
It has nothing to do with the web.
 
T

The Doormouse

Jan Clemens Faerber said:
Books are fine but an icq contact told me not to buy books because it
is a wast of money. You have it all on the net.

Go to the bookstore and browse the web design books. Books have soemthing
that the "Internet" does not - AN EDITOR!

:)

The Doormouse
 
T

Toby Inkster

The said:
Go to the bookstore and browse the web design books. Books have soemthing
that the "Internet" does not - AN EDITOR!

Your computer has something that books do not -- AN EDITOR (with a copy
and paste function for testing examples)
 
T

The Doormouse

Toby Inkster said:
Your computer has something that books do not -- AN EDITOR (with a copy
and paste function for testing examples)

A good editor is worth her weight in gold ...

The Doormouse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top