You can do like this, not sure if there is a smoother way of doing it.
EPiServer.Web.Hosting.UnifiedFile f = System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetFile(virtualPath) as EPiServer.Web.Hosting.UnifiedFile;
string path = f.LocalPath;
I am suck here. I need to get the actual path of the image on the server from the unified file path.
I get this (/global/additionalImages/test.jpg) but i need the c:\vpp\123\123\123-123-123-123.jpg file. Is there a way to do this.
Thanks in advance.