0

Img & web server or personal info

While writing the url on img tag the info/img is taken from the web server. So can't i take the img/info from my phone or other personal things if yes how can i write the url... If no why?

24th Nov 2024, 6:55 AM
Light
Light - avatar
4 ответов
+ 2
Light the easiest way is to upload your image from your phone at imgbb.com and they create a nice img url for you to copy and paste to use where you need it. There are ofcourse other hosting services but imgbb.com is very user friendly.
24th Nov 2024, 8:03 AM
BroFar
BroFar - avatar
+ 2
your phone image is not publicly available. You are not uploading anything when you add a link to your image. It's just a link. Other people's browsers and Sololearn app cannot connect and access the data in your phone or pc. That's why you have to find a service that you can upload your image to and provides a publicly available url in return. But you are effectively giving them your pic as an exchange.
24th Nov 2024, 8:30 AM
Bob_Li
Bob_Li - avatar
+ 2
Hey, Light! The images on your device is only in that device, no one else can see it. It's because your phone is not a web server 😁 If you want to use image from your phone to your webpage, you'll need to host it. There are some popular cloud services for hosting images. For example, Imgbb, or Dropbox. These might help you for that: https://sololearn.com/compiler-playground/Wy3lrXNwGsgJ/?ref=app https://sololearn.com/compiler-playground/WT3661NHpV3B/?ref=app https://sololearn.com/compiler-playground/WW6t4B73kJVz/?ref=app
24th Nov 2024, 2:03 PM
Shihan
Shihan - avatar
0
The image urls are taken from websites. Images in your phone are only in your phone's storage and they are not accessible online. You need to upload it to a website, then copy the link of it and paste it for the url. You can use lot of websites for this purpose, for example, this is a good one too: https://imgur.com
25th Nov 2024, 3:08 AM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar