How can I use a pic from my phone in a code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How can I use a pic from my phone in a code?

I want to add my own picture from my phone to a code without having to upload it to the internet. Is that possible?

16th Nov 2018, 9:20 AM
GreenBlazer 416
GreenBlazer 416 - avatar
5 Answers
+ 12
On Sololearn? No.
16th Nov 2018, 10:40 AM
Nikhil
Nikhil - avatar
+ 10
Actually, it is very much possible. Just use the file:// protocol before your image path. Just remember that by doing so, the image will display only for you, not anyone else. E.g. <img src = "file:///storage/emulated/0/Download/myImage.jpg/"> Rel: https://www.sololearn.com/Discuss/785670/?ref=app
18th Nov 2018, 2:14 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Upload your images to google drive and you can show their path in your code . GreenBlazer 416
16th Nov 2018, 8:05 PM
Sharofiddin
Sharofiddin - avatar
+ 3
No
16th Nov 2018, 9:37 AM
Gordon
Gordon - avatar
+ 2
You have to upload it to the internet first. It's not hard though, check this code: https://code.sololearn.com/WzQmcqq83rn2/?ref=app
17th Nov 2018, 1:20 PM
ReimarPB
ReimarPB - avatar