I am attempting to get a video file on android, convert it to base64 encoding and upload it.
When the file is larger than 5Mb
, I get out of memory error in android, but ios convert large files also. Only in android I got this error....
This is my code:
var reader = new FileReader();
reader.onload = function(evt1) {}, reader.onloadend = function(evt) {
console.log("read success");
console.log(evt.target.result);
};
reader.readAsDataURL(file);