+ 2
I struggle to have an image appear in my code sourcing it from my device it fails to appear when I run my code.
<img src="/Internal-storage/OG.jpg height="60">
15 Antworten
+ 17
SlaGa Husic Hope it helps you
https://code.sololearn.com/Ws6teyT5ti3g/?ref=app
+ 6
Yogeshwaran
I think it's relative to device.
Thank you.
Now i understood fully about file protocol.
+ 5
Yogeshwaran
Bro i used photo from my device in sololearn.
Using file:///storage/emulated/0/image path.
+ 5
Yogeshwaran
https://code.sololearn.com/WUVfh62bOd6Z/?ref=app
it's relative to your device. this photo may not in your phone or this location isn't in your phone. so you may not see this.
if you want to show picture,audio,video from your device. first copy the location then paste it with file:// . default file manager may not give you correct location. download another file manager and from it copy your file location.
+ 5
Yogeshwaran
Can you see my image??
I was not sure it will be visible to others else me.
+ 5
Md Sayed Al Sahab you're right bro😊👍
+ 4
Md Sayed Al Sahab can you show me that code?
+ 4
Md Sayed Al Sahab you are right bro it works very well.
I guess it will be also updated😂
+ 4
Md Sayed Al Sahab your certificate didn't load well.
I see only the borders of that image.
But when I try my phone images on your code.It works very well
Anyway thank you for clearing my misunderstanding about IMG SRC.
+ 2
Md Sayed Al Sahab thank you it worked.
+ 1
Use Dropbox as cloud storage.
Refere this code:-
https://code.sololearn.com/WbzA5GDLT767/?ref=app
+ 1
Create account in Dropbox and upload photo in it and then create link and copy the link and paste in src attribute of img tag.
+ 1
Or try another link source of image directly from Google.
0
use actual location of
file
0
You shold have to remove your fotst front slant / from src path...and define height by px or some else