src/Api/Community.php
public function setImage(string $imageData) : void
    {
        $url = $this->uploadImage('communityProfileImage', $imageData);

        $this->set([
            'profileImage' => [
                'sourceUrl' => $url
            ]
        ]);
    }
public function setImage(string $imageData) : void
    {
        $url = $this->uploadImage('communityProfileImage', $imageData);

        $this->set([
            'profileImage' => [
                'sourceUrl' => $url
            ]
        ]);
    }
public function setImage ( string $ imageData ) : void { $ url = $ this -> uploadImage ( 'communityProfileImage' , $ imageData ) ; $ this -> set ( [ 'profileImage' => [ 'sourceUrl' => $ url ] ] ) ; }
Sets the image for the Community.

@param string $imageData Raw bytes of the image.
@return void
Sets the image for the Community .