View External image file in <img tag

Punkode

New member
Hi, I need to view image files present on the customer’s PC within the html page.
If I enter the absolute path it doesn’t find the image and the prefix is added
https:\heserve\public.

How can I enter the correct path to view a client file located in a folder on his PC?
 
By default, apps read data from the .exe (compiled files). If not available, they start looking into the folder where the .exe lies.
For instance, if your exe lies in
D:\Documents
and your img src is “myfolder/myimg.jpg”, the app will try
D:\Documents\myfolder\myimg.jpg

You can also use PHP to read image files’ content and feed it to the browser.
We wrote a sample in the General Demo that does that.

To sump up, yes, it’s possible to ask the user for a folder or a path with HEScript (like this: How to prompt end users for their name once and store it? - ExeOutput for PHP Documentation)
Then, pass the chosen folder to PHP and have PHP scan and read image files into the folder.
 
Back
Top