Using external files feature


I’ve question regarding external files feature.

We have on-line application that can generate off-line version contains static html files with proper pictures.
More than 90% of publication is high resolution pictures and this cause that generated exe with publication exceeds 4 GB.

In general Windows is unable to run such big file (it shows error “Not enough storage is available to process this command”). It does no matter if computer have 4 GB / 8 GB / 16GB memory available.

So we decided to compile small exe with external images. But structure of generated site is like in example below:


If I set image as a external file as I understood documentation I’m supposed to write full path to image for example %PATH%/images/1/3/4/ and this should be done for every external file. In my case it is about 1000 files so it is rather time consuming manual work.

Did I miss something or there is other solution for this problem. As I’ve mentioned I cannot change structure of generated static html pages.

Thanks for any suggestions

In the latest version of HTML Executable, we introduced a feature that should interest you.
From documentation at
Accessing external files from the publication
Your application can automatically load external resource files (not compiled into the EXE file): for instance, you can have image and media files outside the EXE file (in the same folder or a subfolder).
• If an HTML file references image1.png, the application will look for the image1.png file into its compiled data; if it is not found, it will try to locate it in the same folder as the EXE file (depending on the URI) and load it.
• If you have image file in a subfolder, e.g. <img src=“myfolder/my image.png” />, the application will expect the “my image.png” file to be in a subfolder named “myfolder” (if you leave the file external).
External files have to be deployed with the application’s EXE file, in their respective folders.
It should help you to load those large image files without requiring you to modify your HTML code.