Skip to Content
avatar image
Former Member

Can't load image through <IMG> tag

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

blackx.JPG (8.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 25, 2015 at 08:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded