How to make services node output of file to use external URL instead of public:// URI I've got a basic web service defined in Drupal that returns JSON describing existing nodes on the server. Contained in the output is the key-value pair:

"uri":"public://audio_snippets/01 Australias.m4a" 


Is there a way for the client website that consumes this service to convert the public:// URI into something a browser can actually download, like http://www.mywebservice.com/audio_snippets/01Australias.m4a
There is parse_url

Like 

&lt;?php
$url = file_create_url($field[0]['uri']);
$url = parse_url($url);
$path = $url['path'];
?&gt;


OR  file_create_url

$usablepath = file_create_url($filesyspath);


OR

$path = str_replace('public:/', variable_get('file_public_path', 'sites/default/files'), $uri);