How can i add image to my web page on sololern | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How can i add image to my web page on sololern

adding image

21st Jun 2017, 10:11 PM
abraham
abraham - avatar
16 Antworten
+ 7
@abraham Even if it was possible, it would mean granting some kind of public access to your device. Not really a good idea, especially for *this* community ;)
21st Jun 2017, 10:25 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
1. Go to www.imgur.com 2. Upload your image 3. Use the auto-generated URL from there 4. #Likeaboss 😎
21st Jun 2017, 10:19 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
That is not possible, because SoloLearn runs it's code on a server, not on your phone. (To test this you can turn your internet off and try to run your code) So when you type in <img src="/photos/p1.jpg"> The server will look under it's own runspace if it can find a photo like that.
21st Jun 2017, 10:17 PM
Limitless
Limitless - avatar
+ 1
no it won't work try using any image hosting site and upload image there u will get the link for the image and then use it
21st Jun 2017, 10:19 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
thank you all
21st Jun 2017, 10:23 PM
abraham
abraham - avatar
+ 1
but how i wish i could use photo on my phone
21st Jun 2017, 10:24 PM
abraham
abraham - avatar
+ 1
it should have an input tag as <input type="file" capture="camera">
21st Jun 2017, 10:30 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
21st Jun 2017, 10:12 PM
Limitless
Limitless - avatar
0
i mean image from my device
21st Jun 2017, 10:15 PM
abraham
abraham - avatar
0
I guess another option would be to use drag and drop or select image. But it won't be permanent
21st Jun 2017, 10:25 PM
Limitless
Limitless - avatar
0
ok
21st Jun 2017, 10:26 PM
abraham
abraham - avatar
0
@Limitless drag n drop what's that?
21st Jun 2017, 10:26 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
xD ok that only works on PC
21st Jun 2017, 10:27 PM
Limitless
Limitless - avatar
0
even that won't work on pc.. if u r running any IDE and if u drag an image in to it.. the image file will be read as a txt file and image file will turn into characters
21st Jun 2017, 10:28 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
You drag a picture into your page and drop it there
21st Jun 2017, 10:28 PM
Limitless
Limitless - avatar
0
You'll need to use the right programming duh :P. Facebook did it
21st Jun 2017, 10:29 PM
Limitless
Limitless - avatar