Use local file as background image #4233
Replies: 2 comments 1 reply
-
The simplest example is at There are actually quite a few options for loading content from disk, most of them are outlined in
Are you embedding the image via a data uri in the css file? |
Beta Was this translation helpful? Give feedback.
-
Thanks for these examples. I really want to use *.jpg or *.gif from the local file system. I tried using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Folks,
I am hoping to use CefSharp to replace WebView as it looks more capable, and so far seems to be less opaque than WebView2. I think it's a security thing, but CefSharp won't let me reference a local jpg from my webpage css. Is there a way around this please?
[EDIT] I have also tried reading the local image file and converting it to Base64, but CefSharp complains the URL is too long. Chromium itself doesn't have this issue as I have used Base64 images on websites.
Beta Was this translation helpful? Give feedback.
All reactions