+ 2

I'm starting at HTML how could upload my photo from my phone's storage to Web html?

I do everything in html except upload photos

25th Feb 2017, 2:01 PM
Ryad Abdallah Qaid Saif
Ryad Abdallah Qaid Saif - avatar
8 Respuestas
+ 20
<img src="file:///sdcard/image.jpg" />
25th Feb 2017, 2:04 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 20
( You could also encode by yourself with canvas.toDataURL() )
25th Feb 2017, 5:09 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 19
Then the path you put is wrong...
25th Feb 2017, 5:01 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
If you have just light files, you can encode them in base64 text format... it's a few oversized, but have advantage to not need to find a host and upload images ( you find easily -- free -- encoders online ) Else, you need to search for free image hosts... there are a lot of all kind of choices.
25th Feb 2017, 5:05 PM
visph
visph - avatar
+ 5
Check this code as example of base64 image integrtion: https://code.sololearn.com/WljGVfpz1Dp1/?ref=app Encoding was made with http://base64.wutils.com/encoding-online/image-to-base64/ ...
25th Feb 2017, 5:08 PM
visph
visph - avatar
+ 3
( definitively, I must take the time to dive inside canvas deeply... one day :P )
25th Feb 2017, 5:11 PM
visph
visph - avatar
+ 2
I did what you told me Mr. ValentinHacker but it doesn't show. what should I do?
25th Feb 2017, 3:56 PM
Ryad Abdallah Qaid Saif
Ryad Abdallah Qaid Saif - avatar
+ 2
thanks I really appreciate
25th Feb 2017, 5:14 PM
Ryad Abdallah Qaid Saif
Ryad Abdallah Qaid Saif - avatar