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

**URL:** <https://forum.ionicframework.com/t/how-to-encode-captured-video-into-base64-using-angularjs-in-ionic/73970>\
**Category:** cordova\
**Created:** [December 21, 2016, 9:58am UTC](https://forum.ionicframework.com/t/how-to-encode-captured-video-into-base64-using-angularjs-in-ionic/73970 "2016-12-21T09:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SonyAngel](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@SonyAngel](https://forum.ionicframework.com/u/SonyAngel)\
**Post date:** [December 21, 2016, 9:58am UTC](https://forum.ionicframework.com/t/how-to-encode-captured-video-into-base64-using-angularjs-in-ionic/73970/1 "2016-12-21T09:58:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hardikrawal](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@hardikrawal](https://forum.ionicframework.com/u/hardikrawal)\
**Post date:** [March 27, 2018, 5:09am UTC](https://forum.ionicframework.com/t/how-to-encode-captured-video-into-base64-using-angularjs-in-ionic/73970/2 "2018-03-27T05:09:49Z")

</div>

Any solution on the same?
