src/Webcam.js
function( shot, callback ) {

        var scope = this;

        scope.getShotBuffer( shot, function( err, data ) {

            if( err ) {

                callback( err );

                return;

            }

            var base64 = scope.getBase64FromBuffer( data );

            callback( null, base64 );

        });

    }
function( shot, callback ) {

        var scope = this;

        scope.getShotBuffer( shot, function( err, data ) {

            if( err ) {

                callback( err );

                return;

            }

            var base64 = scope.getBase64FromBuffer( data );

            callback( null, base64 );

        });

    }
function ( shot , callback ) { var scope = this ; scope . getShotBuffer ( shot , function ( err , data ) { if ( err ) { callback ( err ) ; return ; } var base64 = scope . getBase64FromBuffer ( data ) ; callback ( null , base64 ) ; } ) ; }
Get shot base64 as image
if passed Number will return a base 64 in the callback

@method getBase64

@param {Number|FS.readFile} shot To be converted
@param {Function( Error|null, Mixed )} callback Returns base64 string

@return {String} Dont use
Get shot base64 as image if passed Number will return a base 64 in the callback