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.

html rendering of local file without standard file extension

Post Reply
User avatar
salvadordf
Posts: 4074
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: html rendering of local file without standard file extension

Post by salvadordf »

Hi,

You can use a custom URL scheme to load your files.

Take a look at the SchemeRegistrationBrowser demo and you will see that it registers a "hello" scheme and then Delphi loads the resources and fills a TMemoryStream with the contents.
User avatar
salvadordf
Posts: 4074
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: html rendering of local file without standard file extension

Post by salvadordf »

You can do that.

In fact, the CEF3 project maintainer recommends it to avoid some problems using the Fetch API but you will have to load all http resources manually.

https://magpcss.org/ceforum/viewtopic.p ... 609#p38612
Post Reply