Miri
Miri

Reputation: 93

Displaying image in JSF-based web application

I have a JSF application and I am trying to display an image that is sitting locally on another machine in the intranet:

<h:graphicImage id="image"
    url="\\myip\C\images\myimg.jpg">
</h:graphicImage> 

C is a shared folder.

However it doesn't display it and when I look in the source it adds the localhost:8080 as post fix.

how can I deal with it?

When I write the URL with notepad - not as web application it works just fine!

Upvotes: 1

Views: 2172

Answers (2)

jrey
jrey

Reputation: 2183

url="file:///C:/images/myimg.jpg"

Upvotes: 1

Bozho
Bozho

Reputation: 597402

Use plain HTML - <img src="...">

Upvotes: 2

Related Questions