dist/ng-image-upload-template-in.js
function(dataURI) {
        var binary = atob(dataURI.split(',')[1]);
        var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
        var array = [];

        for(var i = 0; i < binary.length; i++) {
          array.push(binary.charCodeAt(i));
        }

        return new Blob([ new Uint8Array(array) ], { type: mimeString });
      }
function(dataURI) {
        var binary = atob(dataURI.split(',')[1]);
        var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
        var array = [];

        for(var i = 0; i < binary.length; i++) {
          array.push(binary.charCodeAt(i));
        }

        return new Blob([ new Uint8Array(array) ], { type: mimeString });
      }
function ( dataURI ) { var binary = atob ( dataURI . split ( ',' ) [ 1 ] ) ; var mimeString = dataURI . split ( ',' ) [ 0 ] . split ( ':' ) [ 1 ] . split ( ';' ) [ 0 ] ; var array = [ ] ; for ( var i = 0 ; i < binary . length ; i ++ ) { array . push ( binary . charCodeAt ( i ) ) ; } return new Blob ( [ new Uint8Array ( array ) ] , { type : mimeString } ) ; }
Turns the Data URI into a blob so it can be sent over to the server
Turns the Data URI into a blob so it can be sent over to the server