ImageEditor on HTTP Resources

3 posts, 1 answers
  1. Michele
    Michele avatar
    7 posts
    Member since:
    Jan 2012

    Posted 16 Jan 2012 Link to this post

    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 "" ?
    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?

  2. Answer
    Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 17 Jan 2012 Link to this post

    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 >>

  3. Michele
    Michele avatar
    7 posts
    Member since:
    Jan 2012

    Posted 18 Jan 2012 Link to this post

    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,
Back to Top