+ 4

importing images

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

7th Mar 2017, 5:18 PM
Anderson Borges
Anderson Borges - avatar
12 Answers
+ 24
<img src="file:///sdcard/img.jpg">
7th Mar 2017, 7:08 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 22
remove "/sdcard0/"
11th Mar 2017, 6:37 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 13
<!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?
11th Mar 2017, 6:37 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 12
Valentine, it's not working on my phone
11th Mar 2017, 5:04 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 9
I don't know that before you it is possible.
11th Mar 2017, 3:47 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 8
open the photo and click"details" and you will write the path you will find.
8th Mar 2017, 5:17 AM
Shehab Amr
Shehab Amr - avatar
+ 8
OK I'll try it now
11th Mar 2017, 7:04 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 8
no it's not working 👈😑
11th Mar 2017, 7:21 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 8
@Anderson Borges would you see my program, please where I'm doing wrong?
11th Mar 2017, 7:23 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 7
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.
11th Mar 2017, 6:41 PM
Mark Foxx
Mark Foxx - avatar
+ 4
simply go for image properties and Copy Full Path ^_^
12th Mar 2017, 5:30 AM
Shirious
Shirious - avatar
+ 2
remove "file" and use only one and add ur img in the some directory. an example: <img src="/storage/emulated/0/HTML/MyPic.png">
11th Mar 2017, 6:43 PM
Anderson Borges
Anderson Borges - avatar