Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to retrieve image with Html

How to retrieve image with Html

Scheduled Pinned Locked Moved C#
htmlsysadmintutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bluebamboo
    wrote on last edited by
    #1

    Hi all, I am planning to make a simple proxy server and i have been trying to retrieve the contents of a web page via Socket and send the display (NetworkStream.Flush) to a client browser. the html contents are being displayed properly but the images are not there. even the httpWebResponse.ContentLength shows the length of html content only. someone plz tell me how to retrieve the images along with html using HttpWebRequest so that the page displays properly. Thanks in advance.

    N L 2 Replies Last reply
    0
    • B Bluebamboo

      Hi all, I am planning to make a simple proxy server and i have been trying to retrieve the contents of a web page via Socket and send the display (NetworkStream.Flush) to a client browser. the html contents are being displayed properly but the images are not there. even the httpWebResponse.ContentLength shows the length of html content only. someone plz tell me how to retrieve the images along with html using HttpWebRequest so that the page displays properly. Thanks in advance.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      If read through these forums you will see that re-asking the same question, even if it is re-phrased, doesn't help.

      B 1 Reply Last reply
      0
      • B Bluebamboo

        Hi all, I am planning to make a simple proxy server and i have been trying to retrieve the contents of a web page via Socket and send the display (NetworkStream.Flush) to a client browser. the html contents are being displayed properly but the images are not there. even the httpWebResponse.ContentLength shows the length of html content only. someone plz tell me how to retrieve the images along with html using HttpWebRequest so that the page displays properly. Thanks in advance.

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Bluebamboo wrote:

        retrieve the images along with html

        Mark is correct, besides HTTP does not work that way. Perhaps you should do some studying on the subject prior to attempting development? :sigh:

        "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
        Colin Angus Mackay in the C# forum

        led mike

        B 1 Reply Last reply
        0
        • N Not Active

          If read through these forums you will see that re-asking the same question, even if it is re-phrased, doesn't help.

          B Offline
          B Offline
          Bluebamboo
          wrote on last edited by
          #4

          hi Mark, actually, i has searched lots of forums, but i got nothing, i believe it is a quite common question, but i really canot find its answer. if you know any relevant URL resources, plz tell me. many thanks

          1 Reply Last reply
          0
          • L led mike

            Bluebamboo wrote:

            retrieve the images along with html

            Mark is correct, besides HTTP does not work that way. Perhaps you should do some studying on the subject prior to attempting development? :sigh:

            "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
            Colin Angus Mackay in the C# forum

            led mike

            B Offline
            B Offline
            Bluebamboo
            wrote on last edited by
            #5

            sorry about the re-ask. but i really need help, and i am fastened on this problem long time~~ A question is really confusing me , how does a proxy program work that way when it responses the content of webpage with images to client explorer:confused:

            L 1 Reply Last reply
            0
            • B Bluebamboo

              sorry about the re-ask. but i really need help, and i am fastened on this problem long time~~ A question is really confusing me , how does a proxy program work that way when it responses the content of webpage with images to client explorer:confused:

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              I am not trying to be rude but HTTP is a fairly large protocol and using a forum is not the way to learn it. Go and study the HTTP protocol so that you "know" what you need to develop before you start writing code. try Google: HTTP protocol tutorial good luck :)

              "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
              Colin Angus Mackay in the C# forum

              led mike

              B 1 Reply Last reply
              0
              • L led mike

                I am not trying to be rude but HTTP is a fairly large protocol and using a forum is not the way to learn it. Go and study the HTTP protocol so that you "know" what you need to develop before you start writing code. try Google: HTTP protocol tutorial good luck :)

                "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
                Colin Angus Mackay in the C# forum

                led mike

                B Offline
                B Offline
                Bluebamboo
                wrote on last edited by
                #7

                good suggetion for me thank a lot:)

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups