This is a migrated thread and some comments may be shown as answers.

SecurityError on ImageEditor

1 Answer 52 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Myoungsu
Top achievements
Rank 1
Myoungsu asked on 19 Nov 2015, 05:52 AM

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.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 19 Nov 2015, 08:48 AM
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
Tags
ImageEditor
Asked by
Myoungsu
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or