How to save image from img tag to application internal storage?

<img [src]="currentCanvas" style="width: 50%;height: 50%" [hidden]="currentCanvas === null" >

image is displaying from galary which is created by base64togalary plugin.
Now i want to store this img in application internal storage when currentCanvas is not null, Any idea please?.