dist/ngx-document-scanner/bundles/ngx-document-scanner.umd.js
function readFile() {
                    return new Promise(function (resolve, reject) {
                        /** @type {?} */
                        var reader = new FileReader();
                        reader.onload = function (event) {
                            resolve(reader.result);
                        };
                        reader.onerror = function (err) {
                            reject(err);
                        };
                        reader.readAsDataURL(file);
                    });
                }
function readFile() {
                    return new Promise(function (resolve, reject) {
                        /** @type {?} */
                        var reader = new FileReader();
                        reader.onload = function (event) {
                            resolve(reader.result);
                        };
                        reader.onerror = function (err) {
                            reject(err);
                        };
                        reader.readAsDataURL(file);
                    });
                }
function readFile ( ) { return new Promise ( function ( resolve , reject ) { /** @type {?} */ var reader = new FileReader ( ) ; reader . onload = function ( event ) { resolve ( reader . result ) ; } ; reader . onerror = function ( err ) { reject ( err ) ; } ; reader . readAsDataURL ( file ) ; } ) ; }
read file from input field
@return {?}
read file from input field