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?
Display an image from the local file system
Hi,
I’m willing to display images and videos from the file system with
<img>
and<video>
tags. For this purpose, I use theFile.toURI()
method and use the resultingfile://
URI in thesrc
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:Is it a specific bug from SSSP 5? Am I not doing it correctly?
Thanks for you help!
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio