cancel
Showing results for 
Search instead for 
Did you mean: 

Image tag in XML View

raffinkira
Participant
0 Kudos

Hi everyone:

I have this in my XML View.

<content>

<Image src="localhost:8080/webapp02/images/01.jpg"/>

</content>

But the picture cannot be displayed.

I have opened this url directly in the browser and I can see the picture.

Moreover, I have also tried  <Image src="http://www.sap.com/global/ui/images/global/sap-logo.png"/> and it works well.


I am wondering who knows this. BTW, my picture is a little bigger than the picture of sap-logo .

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Ming,

Try <Image src="/webapp02/images/01.jpg" />

Regards,

Sai Vellanki.

raffinkira
Participant
0 Kudos

Yes, you are correct. Thank you.

But why I get an error of Failed to load resource: net::ERR_CONNECTION_REFUSED when I use url begins with localhost or ../?

In defining ui5 resource in index.html

I use src="../resources/sap-ui-core.js" and this is working.

Answers (0)