convert absolute path to web path donwload c# code example Example: uri file path c# var uri = new System.Uri("c:\\foo"); var converted = uri.AbsoluteUri;