I would like to use an HTML IMG element to display an image in our UXP panel UI. Loading and displaying images work fine when src is an public internet URL (https://www.xyz.com/image_file_name.jpg), however, I would prefer to load images from the local PluginData folder.
I tried the following in Windows without success and I haven’t noticed any errors in the logs: src=“file:///C://Users//myusername//AppData//Roaming//Adobe//UXP//PluginsStorage//PHSP//22//Developer//uxp_pane_id//PluginData//image_file_name.jpg”. The same path worked fine in a regular web browser.
Should this work and what is the proper way to set src?