0

How can I address a local img file (for testing)

The src doesnt work. Maybe need permissions?

12th Jan 2022, 7:46 PM
Gerhard Stummvoll
Gerhard Stummvoll - avatar
9 Answers
+ 3
If it is a small image you could try to convert the image to data uri and integrate it that way directly into your html code Conversion with JS: https://www.tutorialspoint.com/convert-image-to-data-uri-with-javascript There also online converters
12th Jan 2022, 8:08 PM
Lisa
Lisa - avatar
+ 2
The sololearn playground has no access to your local files.
12th Jan 2022, 7:52 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Thx a lot.
14th Jan 2022, 8:16 AM
Gerhard Stummvoll
Gerhard Stummvoll - avatar
0
Thanks. Can I change this?
12th Jan 2022, 7:53 PM
Gerhard Stummvoll
Gerhard Stummvoll - avatar
0
As far as I know you can't.
12th Jan 2022, 7:54 PM
Simon Sauter
Simon Sauter - avatar
0
Ok. Danke trotzdem.
12th Jan 2022, 7:55 PM
Gerhard Stummvoll
Gerhard Stummvoll - avatar
0
No. And you probably don't want sololearn to have access to your local files either. You can upload the image to hosting services. Or maybe you look for an app that allows you to run your device...
12th Jan 2022, 7:56 PM
Lisa
Lisa - avatar
0
Thx, Lisa
12th Jan 2022, 7:58 PM
Gerhard Stummvoll
Gerhard Stummvoll - avatar
0
1- if you want to put you're local img, you can upload you're images on imgBB.com and then you can get the original link of you're images that let sololearn playground to access it. 2- put a space between img and src
14th Jan 2022, 7:51 AM
IMAN
IMAN - avatar