Referencing downloaded file in html img tag

Hi,

I am developing an app for a digital signage screen that displays images, videos and websites.
The application downloads media to a location within the virtual downloads folder.
I can list the files in the folder so they exist.

When i try to reference the files by assigning the src attribute for an image element in a html page the image cannot be found.

So I copy the file to this location:
downloads/media/stills/dashboard-ds-fallback-port.jpg

I use the getUri() api to get the full path:
file:///opt/usr/home/owner/content/Downloads/media/stills/dashboard-ds-fallback-port.jpg

But i get an error when i try to access the file:
Image playback failed, the image failed to load with src file:///opt/usr/home/owner/content/Downloads/media/stills/dashboard-ds-fallback-port.jpg

I have also tried different paths:
Downloads/media/stills/dashboard-ds-fallback-port.jpg
/Downloads/media/stills/dashboard-ds-fallback-port.jpg
downloads/media/stills/dashboard-ds-fallback-port.jpg

Any help appreciated!
Thanks
Lee

@shawld2

Sorry about the delay in response but I was working light duty over the holidays.

Is this still an issue or did you solve it.

Ron
Samsung Developer Relations

Hi Ron,

Yes, I fixed the issue.

Many thanks
Lee