I am trying to refer the Images from the Web server of the Tridion.
<img src="file://///ServerAddress.com/applications/Images/Styles/temporary.jpeg" alt="alt text"/>
I have added this code my TBB.
The image is not getting displayed.
Added the same code in local html page in my machine, I am able to retrieve the that Image.
Edit: Image is not getting displayed while previewing in Tridion CME.
Can any one suggest how to configure my image source path in TBB for accessing the Image.
Thanks in Advance.
You are using a file://
URL, which means that you are referring to a local file on the machine that opens the HTML. So when you open the HTML on the machine where you originally created it (and placed temporary.jpg
), it will find the file locally and display it.
When you open the same HTML from any other machine, it will fail to find the file on that machine and thus won't display the image. The fact that you use ServerAddress.com
makes no difference for that: file URLs will only resolve to file on the local machine.
If you want to ensure your images work properly for the rest of the internet too, use a more common protocol such as http://
.