Display an image from the local file system

Display an image from the local file system

BY 23 Apr 2019 Web Application Development

Hi,

I’m willing to display images and videos from the file system with <img> and <video> tags. For this purpose, I use the File.toURI() method and use the resulting file:// URI in the src attribute.

This works perfectly on my Samsung SSSP 6 TV. But on my Samsung SSSP 5 TV, it works only for the <video> tag. For the <img> tag, nothing is displayed and the following exception is raised:

Failed to load resource: net::ERR_ACCESS_DENIED (file:///opt/usr/home/owner/apps_rw/2n1utgdEif/data/path/to/image.jpg)

Is it a specific bug from SSSP 5? Am I not doing it correctly?

Thanks for you help!

Written by