public static function openBinary(ClientRuntimeContext $ctx, $serverRelativeUrl)
    {
        $serverRelativeUrl = rawurlencode($serverRelativeUrl);
        $url = $ctx->getServiceRootUrl() . "web/getfilebyserverrelativeurl('$serverRelativeUrl')/\$value";
        $options = new RequestOptions($url);
        $data = $ctx->executeQueryDirect($options);
        return $data;
    }