Server Image Path
-
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
-
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
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
-
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
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; }
-
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
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.
-
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; }
Thanks for immediate reply.
-
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.
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