src/ServiceManagement/ServiceManagementRestProxy.php
private function _encodeConfiguration($value)
    {
        $value = is_resource($value) ? stream_get_contents($value) : $value;
        $value = base64_encode($value);

        // Cut the BOM if any. If the xml configuration would start with BOM Azure treats it as invalid XML file.
        if (strpos($value, '77u/') === 0) {
            $value = substr($value, 4);
        }

        return $value;
    }
private function _encodeConfiguration($value)
    {
        $value = is_resource($value) ? stream_get_contents($value) : $value;
        $value = base64_encode($value);

        // Cut the BOM if any. If the xml configuration would start with BOM Azure treats it as invalid XML file.
        if (strpos($value, '77u/') === 0) {
            $value = substr($value, 4);
        }

        return $value;
    }
private function _encodeConfiguration ( $ value ) { $ value = is_resource ( $ value ) ? stream_get_contents ( $ value ) : $ value ; $ value = base64_encode ( $ value ) ; // Cut the BOM if any. If the xml configuration would start with BOM Azure treats it as invalid XML file. if ( strpos ( $ value , '77u/' ) === 0 ) { $ value = substr ( $ value , 4 ) ; } return $ value ; }
Prepare configuration XML for sending via REST API.

@param string|resource $value The configuration file contents
or file stream

@return string
Prepare configuration XML for sending via REST API .