How to encode captured video into base64 using angularjs in ionic?

I’m using cordova-plugin-media-capture to capture the media files… when i tried to send the file into nodejs server i was required to encode it to base64 and decode in node server…
My requirement is that i’m able to get size,location of the file, date, etc through videoData but not content of the captured video to convert it to base64… please help me out

Any solution on the same?