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

ImageEditor on HTTP Resources

2 Answers 59 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michele
Top achievements
Rank 1
Michele asked on 16 Jan 2012, 08:50 AM
Hello,
is it possible to use the ImageEditor control over an image coming not from local resources but from http, for instance for the image with uri "http://www.mywebsite.com/myapp/images/image1.png" ?
I've tried setting the RadBitmap source to this uri but, even if it does not generate errors at runtime, the Editor in blank.
Trying with the Stream object, it does not support http uri.
Have you a sample about this?

Moreover, after editing this http image, is it possible to save it over the http instead of locally?

Thanks,
Michele

2 Answers, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 17 Jan 2012, 04:03 PM
Hi Michele,

RadImageEditor can open images, as long as you can provide a stream to them in one of the supported data formats. This article shows how a stream can be used to assign an image to the editor.

In Silverlight, there is a limitation that only images from a domain with permissive cross-domain policy can be opened. You can read more on this topic in MSDN. I am not sure if the image you quoted was only an example, but it is not a URI of an existing image. Therefore, please check if the URI is correct and if the domain has a cross-domain policy file.

When it comes to saving the image and uploading it to a URI of your choice, this is not possible. If you want to save the image on the server (i.e.  What you can do, is to export the image and pass it to the server using a WCF (RIA) service. In the ASP project, you can further use the image as you see fit.

Kind regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michele
Top achievements
Rank 1
answered on 18 Jan 2012, 02:14 PM
Dear Iva,
thanks a lot for your kind support. I've solved the first part of the problem, now I'm facing the sending of the modified image to the server but I know this is a more general programming problem and not specific of your pertinence
Best regards,
Michele
Tags
ImageEditor
Asked by
Michele
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Michele
Top achievements
Rank 1
Share this question
or