This question is locked. New answers and comments are not allowed.
Hello, I am having the following problem:
i need to use an image from web, but my application is not considered trusted, so I am insert the image the following way:
But after that I have to save the contents in a database to recover later on, but I need to keep just a reference from the location where it is stored (http://www.foo.bar/image.png). So I have a idea: When I click to save I want to pick the contents of RadRichTextBox and where there is a ImageInline replace it by the "raw" URL (http://www.foo.bar/image.png) and to do the reverse process when I load the contents from database.
Do you have a snippet of code that could help me with this task? Or another suggestion?
Thanks beforehand. I am looking forward to an answer.
i need to use an image from web, but my application is not considered trusted, so I am insert the image the following way:
BitmapImage bitmapImage = new BitmapImage(new Uri(imageFile, UriKind.Absolute)); Image image = new Image() { Source = bitmapImage, Width = bitmapImage.PixelWidth, Height = bitmapImage.PixelHeight, }; Telerik.Windows.Documents.Model.InlineUIContainer imageContainer = new Telerik.Windows.Documents.Model.InlineUIContainer(image, new Size(150, 150));But after that I have to save the contents in a database to recover later on, but I need to keep just a reference from the location where it is stored (http://www.foo.bar/image.png). So I have a idea: When I click to save I want to pick the contents of RadRichTextBox and where there is a ImageInline replace it by the "raw" URL (http://www.foo.bar/image.png) and to do the reverse process when I load the contents from database.
Do you have a snippet of code that could help me with this task? Or another suggestion?
Thanks beforehand. I am looking forward to an answer.