i need to encode in base64 (data:audio/mp3;base64,…) an audio file that i have previously recorded and that is into the device application folder (running on android).
I know i should use the file-system component of nativescript, but i am not able to get the content of the file and then encode it (in a way similar to toFileUrl for images)…
I also posted the question on https://stackoverflow.com/questions/44129285/nativescript-convert-audio-file-to-base64 and there you can find a bit of the source code i am using.
How can i do that ?
Thanks in advance