_getBinary(encodedFile) {

    var binaryImg = atob(encodedFile);
    var length = binaryImg.length;
    var ab = new ArrayBuffer(length);
    var ua = new Uint8Array(ab);
    for (var i = 0; i < length; i++) {
      ua[i] = binaryImg.charCodeAt(i);
    }

    return ab;
  }
/**
   * Convert image to binary
   * @param {string} encodedFile 
   */
Convert image to binary
@param {string} encodedFile
Convert image to binary @param { string } encodedFile
_getBinary(encodedFile) {
    var binaryImg = atob(encodedFile);
    var length = binaryImg.length;
    var ab = new ArrayBuffer(length);
    var ua = new Uint8Array(ab);
    for (var i = 0; i < length; i++) {
      ua[i] = binaryImg.charCodeAt(i);
    }
    return ab;
  }
_getBinary ( encodedFile ) { var binaryImg = atob ( encodedFile ) ; var length = binaryImg . length ; var ab = new ArrayBuffer ( length ) ; var ua = new Uint8Array ( ab ) ; for ( var i = 0 ; i < length ; i ++ ) { ua [ i ] = binaryImg . charCodeAt ( i ) ; } return ab ; }
Convert image to binary
 @param {string} encodedFile
Convert image to binary @param { string } encodedFile