Access the physical path of the AvatarUrl of a media file

Former Member
Former Member

I would like to access the physical path of the AvatarUrl of a media file so that I can add a watermark to the image from a Widget Extension. I am using HttpContext.Current.Server.MapPath(url) in the widget extension to obtain the phyiscal path from the url, but I am getting the following error in the error logs

Ibby_v1_ImageManipulation.ImageData threw exception System.Web.HttpException : 'http:/localhost/cfs-filesystemfile/__key/telligent-evolution-components-attachments/13-01-00-00-00-00-00-25/Image5.jpg' is not a valid virtual path.