webviewwindows-store-appswinjs

how to load image on webview from ms-appdata:///local


I'm developing windows store apps with html5/javascript. I have to load image from src " ms-appdata://local/testimage.png" to webview.I can't able to load the image using this src on navigateToString method.

Any help would be greatly appreciated


Solution

  • You should try the ms-appx-web scheme.

    I believe that if you place the content in a subfolder, ms-appdata should work too.

    More on this on MSDN