Adldap\Models\User::getJpegPhotoEncoded PHP Method

getJpegPhotoEncoded() public method

Returns the users jpeg photo.
public getJpegPhotoEncoded ( ) : null | string
return null | string
    public function getJpegPhotoEncoded()
    {
        $jpeg = $this->getJpegPhoto();
        return is_null($jpeg) ? $jpeg : 'data:image/jpeg;base64,' . base64_encode($jpeg);
    }