It can take a minute to figure out what method to use to get the file URL from the file URI.

Here’s what I did:

file_create_url($file_entity->get(‘uri’)->getString())

Now, mind you, this requires a file entity. Function doc here.

For details on getting that, see this.