1 Reply Latest reply on Jun 18, 2014 4:45 PM by aidreamer

    Display image in WebView from external directory


      I have a WebView and a Javascript that appends an <img> tag in a webview.


      Like so:


      function insertImg(src) {

         $("body").append("<img src='" + src + "'/>");



      I call this function with the following code:


      String path = "file://Users/rod/Desktop/123.gif";

      webengine.executeScript("insertImg('" + path + "')");


      However, this does not work and no image is displayed.


      How can this be achieved?


      Thanks in advance.