In my application I need to load, edit, and save edited images that are not part of the web site running the page that contains the RadImageEditor. Note that the images are on the same web SERVER as the page running RadImageEditor, but they are on a different web SITE.
It appears that the ImageURL property only accepts a path that is relative to the web site running the applicaition/page (at least by default). Otherwise, an error is thrown. In my case, the error looks something like this:
Exception type: System.Web.HttpException
Message: 'http://pictures.mywebsite.com/001/graphics/DSC00752.JPG' is not a valid virtual path.
Stack trace: at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
at System.Web.VirtualPath.Combine(VirtualPath relativePath)
at System.Web.UI.Control.ResolvePhysicalOrVirtualPath(String path, VirtualPath& virtualPath, String& physicalPath)
at System.Web.UI.Control.MapPathSecure(String virtualPath)
at Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage()
at Telerik.Web.UI.RadImageEditor.ApplyClientOperations()
at Telerik.Web.UI.RadImageEditor.ControlPreRender()
at Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
How can I access (load/edit/save) images in RadImageEditor that are outside the relative path?
Thanks.
It appears that the ImageURL property only accepts a path that is relative to the web site running the applicaition/page (at least by default). Otherwise, an error is thrown. In my case, the error looks something like this:
Exception type: System.Web.HttpException
Message: 'http://pictures.mywebsite.com/001/graphics/DSC00752.JPG' is not a valid virtual path.
Stack trace: at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
at System.Web.VirtualPath.Combine(VirtualPath relativePath)
at System.Web.UI.Control.ResolvePhysicalOrVirtualPath(String path, VirtualPath& virtualPath, String& physicalPath)
at System.Web.UI.Control.MapPathSecure(String virtualPath)
at Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage()
at Telerik.Web.UI.RadImageEditor.ApplyClientOperations()
at Telerik.Web.UI.RadImageEditor.ControlPreRender()
at Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
How can I access (load/edit/save) images in RadImageEditor that are outside the relative path?
Thanks.