Electron.NET
Electron.NET copied to clipboard
Unable to Show local image file:///tmp/someimage.jpg
First, sorry about to post a question.
The issue is that I'm not able to show local images via <img src="file:///path/to/someimage.jpg ...
.
I posted the question on Stack Overflow 9 days ago:
- https://stackoverflow.com/questions/62741325/show-local-image-file-tmp-someimage-jpg (+50 bounty)
Is someone so kind to give me instructions about how can I show on electron window picture files from local storage.
Thanks!!
I'm having the same problem. I was able to use your workaround (converting image to base64), but a big problem for me is when trying to load a video file.
If the video file is big (~500mb) then converting to a base64 string will just take too long.
When loading a video/image (like: src="file:///path/to/video.mp4"
) the chrome console shows this error:
For blazor atleast, putting the video inside the wwwroot
folder will allow it to load normally, but that isn't a real possibility for me.
Anything happening with this?
@ctrl-alt-d @GregorBiswanger I think this is a bug