Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
salvadordf
Posts: 4575 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Tue Jun 30, 2020 6:56 am
Try setting request.Url directly. There's no need to call CefCreateUrl.
Code: Select all
request.Url := 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAAC';
dilfich
Posts: 368 Joined: Thu Nov 30, 2017 1:17 am
Post
by dilfich » Wed Jul 01, 2020 1:19 pm
salvadordf wrote: Tue Jun 30, 2020 6:56 am
Try setting request.Url directly. There's no need to call CefCreateUrl.
Code: Select all
request.Url := 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAAC';
I tried this of course, unfortunately it doesn't work. I think I've tried all the options using CefCreateUrl, but maybe I'm doing something wrong.
salvadordf
Posts: 4575 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Wed Jul 01, 2020 3:14 pm
It seems that TChromium.OnBeforeBrowse can only be used with HTTP/HTTPS URLs and not DATA URLs.
Perhaps Chromium handles network related requests differently than data requests.
If you really need to do that you can also replace the URL directly in the HTML using the ResponseFilterBrowser demo.