public function getBase64()
    {
        if ($this->owner->exists()) {
            $file = $this->owner->getFullPath();
            $mime = mime_content_type($file);
            $fileContent = file_get_contents($file);
            return "data://$mime;base64," . base64_encode($fileContent);
        }
        
        return null;
    }
public function getBase64()
    {
        if ($this->owner->exists()) {
            $file = $this->owner->getFullPath();
            $mime = mime_content_type($file);
            $fileContent = file_get_contents($file);
            return "data://$mime;base64," . base64_encode($fileContent);
        }
        
        return null;
    }
public function getBase64 ( ) { if ( $ this -> owner -> exists ( ) ) { $ file = $ this -> owner -> getFullPath ( ) ; $ mime = mime_content_type ( $ file ) ; $ fileContent = file_get_contents ( $ file ) ; return "data://$mime;base64," . base64_encode ( $ fileContent ) ; } return null ; }
Get a base 64 encoded variant of the image

@return string
Get a base 64 encoded variant of the image