+ 1

I wrote a code in which I added an image, but the image doesn't show up when I run the code. Can someone help me out? šŸ™

I added the image from my phone memory. It only shows the space meant for the image when I run the image. The space is blank. The image doesn't show up. U can check it on my profile. The title of the code is "New Class Work". Thank you. https://code.sololearn.com/WsflIdKap6Wk/?ref=app

25th Jan 2018, 7:12 AM
Brainiac
Brainiac - avatar
9 Answers
+ 1
It's still the same. Did u add the .jpg after you've copied and pasted the image into your code?. Is the image supposed to show on an android phone because that's what I used to code.
26th Jan 2018, 2:57 PM
Brainiac
Brainiac - avatar
+ 7
Unfortunately, you cannot directly display (or attach) the images from your phone into the Code Playground. There are still other ways to do it, please refer: https://www.sololearn.com/discuss/624265/?ref=app
25th Jan 2018, 7:31 AM
Dev
Dev - avatar
+ 5
You have to have an external source for the picture, in order for us to see it. I am not sure what Android allows you to load from your phone, but it's obviously contrary to any mainstream distros of Linux or Windows.
25th Jan 2018, 7:27 AM
eRosz
eRosz - avatar
+ 3
@Brainiac, that's because your image is only present in your phone memory. you need to upload the photo to the world wide web to make it work. You can upload photos using imgur and many other image hosting sites then get the link from there.
25th Jan 2018, 7:33 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
I have done the necessary process except for that I don't know the link to copy. Is it the page URL or the image URL. I will appreciate if someone can send an image and the necessary explanations. ThanksšŸ™
26th Jan 2018, 12:34 PM
Brainiac
Brainiac - avatar
+ 1
Thanks you all. I really appreciatešŸ‘šŸ™Œ
26th Jan 2018, 6:39 AM
Brainiac
Brainiac - avatar
+ 1
@Jonathan, I used imgur.
26th Jan 2018, 2:38 PM
Brainiac
Brainiac - avatar
0
@Brainiac, you need the image url. It should end in the file extension of your image like .jpg or .png.
26th Jan 2018, 12:39 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
Here is a sample code. The image is from imgur. Where did you uploaded your image? https://code.sololearn.com/W5npoJNAUjFG/?ref=app
26th Jan 2018, 12:44 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar