I have an Android app that takes videos and saves them to a Firebase database. It stores the videos as encoded strings using Guava:
String encodedVideo = Files.toString(videoFile, Charsets.ISO_8859_1);
I am also developing a companion web app using AngularJS that should allow users to download the videos (by clicking a link) that have been stored to the database. However, I cannot use Guava to decode the string since it's not available for Javascript.
I am very new to AngularJS and web development in general. I'm sorry if this is an ignorant question, but what would be the simplest way to decode the string and create a downloadable file?