Getting the complete route of a file

15/02/2016

In Drupal 7:

// Load data file from fid.
$file = file_load($fid);
// Create external url from uri.
$external_url = file_create_url($file->uri);