+ 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
9 Réponses
+ 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.
+ 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
+ 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.
+ 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.
+ 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🙏
+ 1
Thanks you all. I really appreciate👏🙌
+ 1
@Jonathan, I used imgur.
0
@Brainiac, you need the image url. It should end in the file extension of your image like .jpg or .png.
0
Here is a sample code. The image is from imgur. Where did you uploaded your image?
https://code.sololearn.com/W5npoJNAUjFG/?ref=app