importing images | Sololearn: Learn to code for FREE!


importing images

how to get a link of an img from my gallery?

3/7/2017 5:18:11 PM

Anderson Borges

12 Answers

New Answer


<img src="file:///sdcard/img.jpg">


remove "/sdcard0/"


<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src="file:///sdcard/sdcard0/sign.png" height=300 width=300 alt="Wrong Path"> </body> </html> what's wrong with that?


Valentine, it's not working on my phone


I don't know that before you it is possible.


open the photo and click"details" and you will write the path you will find.


OK I'll try it now


no it's not working 👈😑


@Anderson Borges would you see my program, please where I'm doing wrong?


Sololearn may not have the right permission to access these certain files. If the file was located in the apps directory, then it could've been a possibility - I assume this if you haven't tired what Shehab Soliman stated, because you would need the file path or location of it.


simply go for image properties and Copy Full Path ^_^


remove "file" and use only one and add ur img in the some directory. an example: <img src="/storage/emulated/0/HTML/MyPic.png">