displaying image

Discussion in 'HTML' started by Steve, Sep 8, 2004.

  1. Steve

    Steve Guest

    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
     
    Steve, Sep 8, 2004
    #1
    1. Advertising

  2. Steve

    Jim Higson Guest

    Steve wrote:

    > 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?
     
    Jim Higson, Sep 8, 2004
    #2
    1. Advertising

  3. Steve

    Toby Inkster Guest

    Steve wrote:

    > 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.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Sep 8, 2004
    #3
  4. Steve

    Steve Guest

    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
     
    Steve, Sep 8, 2004
    #4
  5. Steve

    Steve Pugh Guest

    "Steve" <> wrote:

    > 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

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Sep 8, 2004
    #5
  6. Steve

    Steve Pugh Guest

    "Steve" <> wrote:

    >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

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Sep 8, 2004
    #6
  7. Steve

    rf Guest

    Steve wrote:

    > To clarify the question.


    You need to clarify a bit more :)

    > 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?


    Er... <a href="http://example.com/image.gif">show an image by itself</a> ?

    --
    Cheers
    Richard.
     
    rf, Sep 8, 2004
    #7
  8. Steve

    Chris Morris Guest

    "Steve" <> writes:
    > 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.)

    --
    Chris
     
    Chris Morris, Sep 8, 2004
    #8
  9. Steve wrote:

    > 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:" ALIGN="top"
    ALT="" BORDER="0">
    </BODY>
    </HTML>

    --=-r2Ww/+auCthia9blxNRZ--

    --=-Mlq035MjzkmnzKkOrSRq
    Content-ID: <>
    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?


    --
    Jan
     
    Jan Clemens Faerber, Sep 8, 2004
    #9
  10. "Steve" <> wrote:

    > 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

    --
    The Doormouse cannot be reached by e-mail without her permission.
     
    The Doormouse, Sep 8, 2004
    #10
  11. The Doormouse wrote:

    > 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.

    --
    Jan
     
    Jan Clemens Faerber, Sep 8, 2004
    #11
  12. On Wed, 08 Sep 2004 12:42:11 +0100, Chris Morris wrote:

    > "Steve" <> writes:
    >> 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.)


    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...

    --
    Jeffrey D. Silverman | **
    Website | http://www.newtnotes.com

    (** Drop "pants" to reply by email)
     
    Jeffrey Silverman, Sep 8, 2004
    #12
  13. On Wed, 08 Sep 2004 13:04:21 +0000, Jan Clemens Faerber wrote:

    > The Doormouse wrote:
    >
    >> 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.



    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 | **
    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?
     
    Jeffrey Silverman, Sep 8, 2004
    #13
  14. Steve

    Toby Inkster Guest

    Jan Clemens Faerber wrote:

    > 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.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Sep 8, 2004
    #14
  15. Jeffrey Silverman wrote:

    > 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.

    --
    Jan
     
    Jan Clemens Faerber, Sep 8, 2004
    #15
  16. Jan Clemens Faerber <> wrote:

    > 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

    --
    The Doormouse cannot be reached by e-mail without her permission.
     
    The Doormouse, Sep 9, 2004
    #16
  17. Steve

    Toby Inkster Guest

    The Doormouse wrote:

    > 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)

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Sep 9, 2004
    #17
  18. Toby Inkster <> wrote:

    > 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

    --
    The Doormouse cannot be reached by e-mail without her permission.
     
    The Doormouse, Sep 9, 2004
    #18
  19. Steve

    Neal Guest

    On Thu, 09 Sep 2004 13:20:31 GMT, The Doormouse <> wrote:

    > Toby Inkster <> wrote:
    > A good editor is worth her weight in gold ...


    Good gold is worth its weight in karats, though.
     
    Neal, Sep 9, 2004
    #19
  20. Steve

    Mark Parnell Guest

    On Thu, 09 Sep 2004 10:54:45 -0400, Neal <> declared in
    alt.html:

    > Good gold is worth its weight in karats, though.


    But they don't do your eyes much good, despite the propaganda to the
    contrary.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    "Never drink rum&coke whilst reading usenet" - rf 2004
     
    Mark Parnell, Sep 10, 2004
    #20
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephen

    Displaying Image after Streaming

    Stephen, Nov 29, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    448
    Stephen
    Nov 29, 2004
  2. =?Utf-8?B?SmltIE1hY2U=?=

    Displaying images from a database in an image control

    =?Utf-8?B?SmltIE1hY2U=?=, May 5, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    389
    Ashish M Bhonkiya
    May 5, 2004
  3. Ken Varn
    Replies:
    2
    Views:
    374
    Ken Varn
    May 19, 2004
  4. http://www.visual-basic-data-mining.net/forum

    Displaying image after selecting an image file.

    http://www.visual-basic-data-mining.net/forum, Sep 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    353
    http://www.visual-basic-data-mining.net/forum
    Sep 15, 2004
  5. Laszlo Zsolt Nagy
    Replies:
    1
    Views:
    1,372
    Kartic
    Jan 26, 2005
Loading...

Share This Page