+ 2

How to use image in coding in code playground?

i want to upload and show an image and apply some functions on the but i dont know how to upload images here?

27th Oct 2017, 5:44 PM
Muhammad Idrees 🇵🇰
Muhammad Idrees 🇵🇰 - avatar
5 Respuestas
+ 3
sorry bro. what you write in scr parameter? we need to upload image and the use the link in src parameter
27th Oct 2017, 5:52 PM
Muhammad Idrees 🇵🇰
Muhammad Idrees 🇵🇰 - avatar
+ 3
We cannot upload such files here, on sololearn servers: we need to use any of numbered external host providers (google search for "free image host" will give you a bunch of result ^^)... or to encode them in base64 data text format to embed them in the html/css source file (but that's a worth solution, because it sould become very heavy to load/run). Another workaround intermediate solution is to embed images in base64 in an empty playground project/tab and be enough clever to success to import them with JS: I will not give the how to for this solution, as it's not intended to hijack code playground for this purpose, and even if less heavy than embed directly them in the main source code, it's not an efficient way and shouldn'be be advised... but it's a possible tricky way ;P
28th Oct 2017, 7:07 AM
visph
visph - avatar
+ 2
thanks but play ground is the place where we write new code click on the link below https://code.sololearn.com/#html
27th Oct 2017, 5:48 PM
Muhammad Idrees 🇵🇰
Muhammad Idrees 🇵🇰 - avatar
0
What is "Code Playground" .??
27th Oct 2017, 5:47 PM
Mahfooz Ahmed
Mahfooz Ahmed - avatar
0
Suggest! <img src=""> Html Tag
27th Oct 2017, 5:50 PM
Mahfooz Ahmed
Mahfooz Ahmed - avatar