Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi Bevan,
Here's the code:
var urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();
IContent content = urlResolver.Route(new UrlBuilder(imagePath));
// cast to MediaData, or ImageFile, or whatever :)
var mediaData = content as MediaData;
Hope this helps
Previously I could open a VersioningFile using:
How can I do the same thing in the new media system?