Edit path of image file in Image viewer in C# / XAML -


i using below code :

string filepath = e.fullpath; image.source = new bitmapimage(new uri(filepath)); 

filepath output is:

file:///c://folder//location//name.jpg 

which throwing error image.source

required path format image :

c:/folder/location/name.jpg 

please help,

thank in advance

try this:

string filepath = e.fullpath; image.source = new bitmapimage(new uri(filepath).localpath); 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -