Get Image / File URL

I have looked all over, but can't find a straight answer to this.

I am working on a block that allows for choosing an image (or file).

Currently, the image picker works and saves just fine. However, I am having trouble getting the URL to display for the selected image. Below is the code I'm using:

$ih = Loader::helper("image");
$img = File::getByID($fID);
<?php echo $img->src ?>

Any ideas as to what I'm missing?

View Replies:
hutman replied on at Permalink Reply
Take a look at this forum post, this has the legacy method as well as the new 5.7 method mentioned.