Ionic2 native File plugin writeFile is failing for the Blob More than 30MB


#1

Hi ,

We are facing issue with Ionic File native plugin.
We can able to write and read file which is below 20-25 MB.

If the Blob size is more than 25MB, it is failing to write file into mobile and we are getting error code as: NOT_READABLE_ERR.

Below is the code for this:

var d = new Buffer(data.Body, ‘binary’);
var blob = new Blob([d]);
return me.file.writeFile(dataDirectory, ‘file.zip’, blob, { append: false, replace: true }).catch((err) => {
this.downloadingSpinner.dismiss();
throw err;
});

Anyone have any Idea on this?