Download the example template:  HttpPictureLoadSample.rst

To load images via url, it is needed to create function for getting the image in Document.CommonScript and use this function in Binding of the Image property of the Picture element:

public System.Drawing.Image GetImageFromLocation(String imageLocation)
{
System.Uri uri;

uri = new Uri(imageLocation);

if (uri.IsFile)
{
using (System.IO.StreamReader reader = new System.IO.StreamReader(uri.LocalPath))
{
using (var image = System.Drawing.Image.FromStream(reader.BaseStream))
{
return new System.Drawing.Bitmap(image);
}
}
}
using (System.Net.WebClient client = new System.Net.WebClient())
{
using (System.IO.Stream stream = client.OpenRead(uri.ToString()))
{
using (var image = System.Drawing.Image.FromStream(stream))
{
return new System.Drawing.Bitmap(image);
}
}
}
}

Add Feedback