I think http://api.drupal.org/api/drupal/includes!file.inc/function/file_create_url/7. Might be what your looking for.