+ 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
8 ответов
+ 20
<img src="file:///sdcard/image.jpg" />
+ 20
( You could also encode by yourself with canvas.toDataURL() )
+ 19
Then the path you put is wrong...
+ 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.
+ 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/ ...
+ 3
( definitively, I must take the time to dive inside canvas deeply... one day :P )
+ 2
I did what you told me Mr. ValentinHacker but it doesn't show.
what should I do?
+ 2
thanks I really appreciate