public function iconUpload($data)
  {
    $crc = crc32($data);
    $size = strlen($data);

    $upload = $this->transferInitUpload(rand(0x0000, 0xFFFF), 0, "/icon_" . $crc, $size);
    $transfer = \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::factory("filetransfer://" . $upload["host"] . ":" . $upload["port"]);

    $transfer->upload($upload["ftkey"], $upload["seekpos"], $data);

    return $crc;
  }
public function iconUpload($data)
  {
    $crc = crc32($data);
    $size = strlen($data);

    $upload = $this->transferInitUpload(rand(0x0000, 0xFFFF), 0, "/icon_" . $crc, $size);
    $transfer = \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::factory("filetransfer://" . $upload["host"] . ":" . $upload["port"]);

    $transfer->upload($upload["ftkey"], $upload["seekpos"], $data);

    return $crc;
  }
public function iconUpload ( $ data ) { $ crc = crc32 ( $ data ) ; $ size = strlen ( $ data ) ; $ upload = $ this -> transferInitUpload ( rand ( 0x0000 , 0xFFFF ) , 0 , "/icon_" . $ crc , $ size ) ; $ transfer = \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ TeamSpeak3 :: factory ( "filetransfer://" . $ upload [ "host" ] . ":" . $ upload [ "port" ] ) ; $ transfer -> upload ( $ upload [ "ftkey" ] , $ upload [ "seekpos" ] , $ data ) ; return $ crc ; }
Uploads a given icon file content to the server and returns the ID of the icon.

@param  string $data
@return integer
Uploads a given icon file content to the server and returns the ID of the icon .