SecurityError on ImageEditor

2 posts, 0 answers
  1. Myoungsu
    Myoungsu avatar
    7 posts
    Member since:
    Jul 2015

    Posted 18 Nov 2015 Link to this post

    I try to show image which is located FTP Server.

    So I set ImageEditor.ImageUrl = ftp://sckpcsd:Korea%4012@krpcsdapp01/LMK/Image/2015/11/10474/7L4Q.JPG

     

    Then when image loading, error window was happened, it says debug web page using internet explorer inside script Debugger.

    If I select Yes, debugger is open.

    If I select No, the image is sucessfully loading.

     

    I think that image is located other PC, so the error window is happend.

    How can I make the error message isn't happen before image loading without download image from ftp server to web server.

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 19 Nov 2015 Link to this post

    Hi Myoungsu,

    The experienced error is caused due to the fact by design RadImageEditor can work only with virtual paths pointing to images placed inside its application root directory and using images from external URL (like the given ftp one) is not supported. The only other built in option of the control I can suggest you is to load the image as an file stream and follow the loading approach used here:
    http://demos.telerik.com/aspnet-ajax/imageeditor/examples/customsaving/defaultcs.aspx

    Optionally, you can make the control support such URLs, by implementing your own Image Content Provider that achieves your needs and fits the application's requirements. 


    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top