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. Server Image Path

Server Image Path

Scheduled Pinned Locked Moved C#
sysadmintutorial
6 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.
  • N Offline
    N Offline
    nachisaravanan
    wrote on last edited by
    #1

    I am displaying images in my application. I want to display the images dynamically by assigning absolute path to the image controls. When i deploy my application in the web server, i could'nt view the images in the browser since it checks for the clients local path. How to solve this. Thanks in advance. Saravanan. P

    C G 2 Replies Last reply
    0
    • N nachisaravanan

      I am displaying images in my application. I want to display the images dynamically by assigning absolute path to the image controls. When i deploy my application in the web server, i could'nt view the images in the browser since it checks for the clients local path. How to solve this. Thanks in advance. Saravanan. P

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This is a web app ? If so, how are you managing to load images locally ? If not, how are you loading them and how does the server fit in ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      N 1 Reply Last reply
      0
      • N nachisaravanan

        I am displaying images in my application. I want to display the images dynamically by assigning absolute path to the image controls. When i deploy my application in the web server, i could'nt view the images in the browser since it checks for the clients local path. How to solve this. Thanks in advance. Saravanan. P

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Any images that you want to display have to be accessible through the web server. You have to use the virtual address of the image, not the physical address, as the browser will be getting the image through the web server, not through the file system.

        --- b { font-weight: normal; }

        N 1 Reply Last reply
        0
        • C Christian Graus

          This is a web app ? If so, how are you managing to load images locally ? If not, how are you loading them and how does the server fit in ?

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          N Offline
          N Offline
          nachisaravanan
          wrote on last edited by
          #4

          Thanks for immediate reply.it is web app developed using c#.i am dynamically assigning the absolute image path ( like c:/bat.gif ) to image controls at runtime.after depolying, my app is searching for bat.gif in client machine but i want my app to search for bat.gif in server machine and display it.How can i do it.

          C 1 Reply Last reply
          0
          • G Guffa

            Any images that you want to display have to be accessible through the web server. You have to use the virtual address of the image, not the physical address, as the browser will be getting the image through the web server, not through the file system.

            --- b { font-weight: normal; }

            N Offline
            N Offline
            nachisaravanan
            wrote on last edited by
            #5

            Thanks for immediate reply.

            1 Reply Last reply
            0
            • N nachisaravanan

              Thanks for immediate reply.it is web app developed using c#.i am dynamically assigning the absolute image path ( like c:/bat.gif ) to image controls at runtime.after depolying, my app is searching for bat.gif in client machine but i want my app to search for bat.gif in server machine and display it.How can i do it.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              You need to point to the images using the path to the server, such as www.mysite.com/images/img.gif. If you put a local path, then you'll get a local path.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

              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