In this tutorial, you will learn how to get the URL for an image created within Sitecore CMS in code. This is such a simple question, however, I have not seen a simple tutorial online that details the code required 😕

To get the Url from an Image field in Sitecore via code, you can use the following snippet:

That is the code required. Go out and render some beautiful images 😊

Happy Coding 🤘