Read An Image Directly from File Explorer

Hi, I am using an ImageEditor to view images, but I can only display images from the web and from wwwroot​. The following code doesn't display the image, please advise:


Screenshot 2024-11-28 101448.png


1 Reply

YA YuvanShankar Arunagiri Syncfusion Team November 29, 2024 12:17 PM UTC

Hi Alamode,


We have reviewed your query and would like to clarify that local image paths cannot be directly used in a Blazor app. This limitation is due to browser security constraints, as web browsers are designed to prevent direct access to the local file system for security reasons. As you said, instead of referring the local image path directly to the OpenAsync method of the image editor, kindly use the hosted image (web) or use the image under the wwwroot folder. Or use the uploader option of the image editor to load the local image into the image editor.


Please let us know if you need any further assistance on this.


Regards,

YuvanShankar A


Loader.
Up arrow icon