Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Show local image file:///tmp/someimage.jpg #449

Open
ctrl-alt-d opened this issue Jul 15, 2020 · 1 comment
Open

Unable to Show local image file:///tmp/someimage.jpg #449

ctrl-alt-d opened this issue Jul 15, 2020 · 1 comment
Labels

Comments

@ctrl-alt-d
Copy link

@ctrl-alt-d ctrl-alt-d commented Jul 15, 2020

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:

Is someone so kind to give me instructions about how can I show on electron window picture files from local storage.

Thanks!!

@IRHM
Copy link

@IRHM IRHM commented Sep 8, 2020

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:

Error - Not allowed to load local resource

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.