+ 2
Why isn't my picture (selected one) not visible on the screen ? Can anyone help me finding my mistake?
Unable to use img tag properly with src... https://code.sololearn.com/WsMkUCh4Z51f/?ref=app https://code.sololearn.com/WsMkUCh4Z51f/?ref=app
6 Answers
+ 1
Make sure your img url.
/storage/emulated/O/download/336378_S.jpg is not visible in Solo Learn Playground and https://www.freepik.com/free-photo/laptop-with-cup-coffee-view-from_755830.htm https://www.freepik.com/free-photo/laptop-with-cup-coffee-view-from_755830.htm isn't img url.Thank!
+ 2
Sri Lakshmi Gayatri eluri
The url should be file:///sdcard/ instead of storage/emulated/0/
See this code to load a local file:
https://code.sololearn.com/Ws6teyT5ti3g/?ref=app
***Imp***
Please don't use local files in your project. Use some online resource.
+ 1
Thank you very much
+ 1
You need to upload your image to internet so that the others can see it. There are two free hosts :
How to host an image, the imgbb way, by Farhanaz đ
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
[Tutorial] Upload content from your device to CodePlayground - The Dropbox way
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
This question has been asked and can be searched for. Users of this Q&A forum are recommended to use search feature before asking questions to avoid duplicates.
https://www.sololearn.com/Discuss/1316935/?ref=app
Search bar is here:
https://www.sololearn.com/post/10362/?ref=app
(Tips: Remember to switch filter option to "Most Popular" first, try also switching to trending once a while. Sometimes the popular filter doesn't show relevant results.)
0
Please help
0
Thank you ...