0

I am trying to get image source path in string but not able to get it.

Here is my code

String tempJPEG = imgUpload.Source.ToString() ;

Here imgUpload is <Image x:Name="imgUpload" ></Image>

I am getting this "System.Windows.Media.Imaging.BitmapImage" in tempJPEG.

How can I get image path?

1 Answer 1

1

The source property of the image control contains BitmapImage itself. Therefore you need to use the BitmapImage.UriSource property.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.