Can I use pictures from my cell phone? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I use pictures from my cell phone?

I have learned about how to use images with <img src="example"> but I wsnt to know if I can use pictures from my cell phone here in my pages created in the app

8th Jan 2017, 5:38 PM
Juan Jose Mayorga (Tmaniacus)
Juan Jose Mayorga (Tmaniacus) - avatar
10 Answers
+ 6
file:///sdcard/image.jpg
8th Jan 2017, 5:42 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
Simplify your image name and use "sdcard" instead of "storage/emulated/0" (not sure if "%" is allowed in html sizing…)
8th Jan 2017, 6:38 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
Give us your code.
8th Jan 2017, 6:26 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
Three slashes. You can also start with file:///sdcard/ and browse from there (i.e., use your web browser to get the link)
8th Jan 2017, 5:58 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Works for me from CodePlayground. Try using a really simple image name like 1.jpg. Get that working, then debug longer ones.
8th Jan 2017, 6:22 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
perfect! thank you very much! it worked! but the picture does not see in the page, only a little green picture broken :D
8th Jan 2017, 6:09 PM
Juan Jose Mayorga (Tmaniacus)
Juan Jose Mayorga (Tmaniacus) - avatar
+ 1
<!DOCTYPE html> <html> <head> <title>Pastel de Luna, Repostería Fina</title> </head> <body> <h1>Pastel de Luna</h1> <hr> <h4>Repostería Fina</h4> <br /> <br /> <p align="center"><b><i>Bienvenido a nuestra deliciosa página Web</i></b></p> <br /> <img src="file:///storage/emulated/0/Download/2016-08-15%2020.30.43.jpg" height="50%" width="50%" alt="Pays in a basket" /> </body> </html>
8th Jan 2017, 6:31 PM
Juan Jose Mayorga (Tmaniacus)
Juan Jose Mayorga (Tmaniacus) - avatar
+ 1
ok, thank you very much for your help :D I will do it
8th Jan 2017, 6:42 PM
Juan Jose Mayorga (Tmaniacus)
Juan Jose Mayorga (Tmaniacus) - avatar
0
<img src="file://sdcard/image/jpg" /> it does not work with me :(
8th Jan 2017, 5:53 PM
Juan Jose Mayorga (Tmaniacus)
Juan Jose Mayorga (Tmaniacus) - avatar
0
Can you give me an example? please, I am going to keep trying :D thank you
8th Jan 2017, 6:24 PM
Juan Jose Mayorga (Tmaniacus)
Juan Jose Mayorga (Tmaniacus) - avatar