Page 1 of 1

Re: html rendering of local file without standard file extension

Posted: Thu Oct 11, 2018 12:02 pm
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.

Re: html rendering of local file without standard file extension

Posted: Fri Oct 12, 2018 9:30 am
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