0

I am doing app that will load URLs that user added. App will load URLs from database and show them images but when i put variable in image source it shows nothing and when Itry to put url directly like this Source = "/memory/....". It shows it. It should look like this:

enter image description here

Code looks like this:

enter image description here

How to load these images from URL variable?

4
  • You can use libraries such as FFImageLoading, Glide etc. to achieve this. However, your question as is. Doesn't provide a minimal reproducible example of your issue, and as such I have marked it to be closed, since it is not well fit for StackOverflow QA. Please refer to stackoverflow.com/help/how-to-ask Commented Dec 4, 2020 at 12:58
  • 3
    please do NOT post code as images Commented Dec 4, 2020 at 14:17
  • use ImageSource.FromUri() to load from a url Commented Dec 4, 2020 at 14:18
  • FYI regarding formatted text vs images of text: Please read this meta post which lists many reasons why this is very important. Commented Dec 5, 2020 at 17:58

1 Answer 1

1

Like Jason mentioned in his comment on your question, just repalce the FromFile(...) in line 43 of image 2 with FromUri(...).

See the docu of teh function here, Docs MS

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.