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…
Read more about Drupal 8: How to Get a File URL from a File URI like public://filename Suitable for img src