fuctBase64
Converting File Uploads To Base64
Using the library.
Installation
install the library using ```js npm install fuctbase64 ``` or ```js npm install fuctbase64 --save ``` to save to your package.json.Usage
In Angular 2+
```ts // Imports import { Component } from '@angular/core'; let fileUpload = require('fuctbase64'); // Component Decorator @Component({ selector: 'app-file-upload-to-base64', template: `{{fileResult}}
let result = fileUpload(event).then(result => {
this.fileResult = result;
});
}
}
```
Check out the Plunkr