cancel
Showing results for 
Search instead for 
Did you mean: 

Can't load image through <IMG> tag

Former Member
0 Kudos

I'm new to development on a SAP Portal.  I have a URL iView that points to a HTML file out on the portal server.  Inside that HTML file, I have a <IMG SRC="myLogo.jpg">.  The logo file is in the same directory as the HTML file.  When I load the page, everything loads fine except for the image.  All I get is a....

Now I've replaced the image URL with another http://whereever.com/randomimage.jpg and it works.

The weird thing is if I go to http://myserver/myfolder/myLogo.jpg I get the following....

<HTML><HEAD></HEAD><BODY>.... some random garbage.... </BODY></HTML>

The image loads fine in any image viewer.

Is there something that I'm missing? 

Thanks,

Curtis

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193577
Active Contributor
0 Kudos

Hi,

Try to specify in your HTML page a base path that point to the correct images locations.

For example:

<base href="http://hongkiat.maxcdn.com/assets/"

Best regards,

Tal