Forums

This topic is locked

Display image

Posted 25 Nov 2003 03:59:50
1
has voted
25 Nov 2003 03:59:50 Kent Steelman posted:
I am trying to display an image that resides in a folder that is not subordinant to my www folder. It is in a file that is even in location in the wwwroot with the www. I am able to upload the files to the folder but when I try to display them with a record set they dont show up. The response by the ISP is as follows.

Hi

The image tag in html will not accept a physical path as the source. It will only accept a relative or absolute url of your website.

so how can I make it relative or can I

Kent

Wm. Kent Steelman

Replies

Replied 25 Nov 2003 06:03:12
25 Nov 2003 06:03:12 Nozomi Kugita replied:
Do you mean that the image in question is located in a different domain from your site? If so, you need to specify the image in absolute url (URL address of the image that begins with "").

If you want to use a relative path, you need to move the image to a directory that belongs to your wwwroot.

- Noz
Replied 25 Nov 2003 13:42:13
25 Nov 2003 13:42:13 Kent Steelman replied:
Ok but now I have one more question. My ftp or webservice references this as D://inetpub/company.com/wwwroot/images for the image locaton and
D://inetpub/company.com/wwwroot/www for the website if this is so do I use
www.company.com/wwwroot/image/name.jpg?



Wm. Kent Steelman
Replied 25 Nov 2003 13:53:38
25 Nov 2003 13:53:38 Nozomi Kugita replied:
Oh Isee. Interesting directory structure...

Anyway, in this case, it seems like you can actually use a relative path. The following path is relative to your file in www directory:

../images/<i>name.jpg</i>

- Noz

Reply to this topic