How to place an image or audio | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to place an image or audio

I know how to do it from the tutorials but trying to use an image or audio from a file in my system is difficult... I don't jus knw what am missing

19th Nov 2018, 1:38 AM
Bonaventure
Bonaventure - avatar
8 Answers
+ 2
Bonaventure It's very possible, but there's a catch. If you use any file directly from your device, others won't be able to see it since it's not on their devices. That said, here's how I do it. <img src="file:///sdcard/folder/image.jpg"/> Note:: This part "file:///sdcard/" is NECESSARY, especially if you are using a phone. the "folder" represents the folder containing the image. If it's a nested folder, use "folder/folder/img.jpg". Here ,you can replace the "folder " with the actual name of your folder, also for the image
19th Nov 2018, 2:28 AM
Dlite
Dlite - avatar
+ 4
Upload your image to dropbox and your audio to google drive
19th Nov 2018, 1:41 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 1
You can try Dropbox method to upload from your device!! https://code.sololearn.com/WW6t4B73kJVz/?ref=app
19th Nov 2018, 3:56 AM
AL Araf
AL Araf - avatar
0
Tell me when it works
19th Nov 2018, 2:52 AM
Dlite
Dlite - avatar
0
m trying to do it put the device am using does contain an sd card
19th Nov 2018, 3:02 AM
Bonaventure
Bonaventure - avatar
0
It still works
19th Nov 2018, 3:04 AM
Dlite
Dlite - avatar
0
ok so what i still use the sd card as the source or would i jus type storage or something else
19th Nov 2018, 3:07 AM
Bonaventure
Bonaventure - avatar
0
I found sdcard to be shorter than typing storage/emulated/0/ use sdcard
19th Nov 2018, 3:09 AM
Dlite
Dlite - avatar