public function convert() {

        $resource = $file = \tao_helpers_Http::getUploadedFile('content');

        $base64Converter = new Base64ConverterModel($resource);

        $this -> returnJson($base64Converter->convertToBase64());
    }
public function convert() {

        $resource = $file = \tao_helpers_Http::getUploadedFile('content');

        $base64Converter = new Base64ConverterModel($resource);

        $this -> returnJson($base64Converter->convertToBase64());
    }
public function convert ( ) { $ resource = $ file = \ tao_helpers_Http :: getUploadedFile ( 'content' ) ; $ base64Converter = new Base64ConverterModel ( $ resource ) ; $ this -> returnJson ( $ base64Converter -> convertToBase64 ( ) ) ; }
Convert uploaded resource to base 64 code

@return mixed
Convert uploaded resource to base 64 code