Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem With Streamed Images (Read 1792 times)
dolfandon
Junior Member
**
Offline



Posts: 51
Location: Northern Virginia
Joined: Mar 12th, 2009
Problem With Streamed Images
Jan 8th, 2010 at 4:14pm
Print Post  
We allow the user to change the images of the node they place on the diagram. We store those images in a database and then stream them back to the browser when the diagram is displayed. For some reason those streamed images do not display in the diagram. I have tried bmp and png and neither one of those work.

           string imageUri = task.Image > 0 ? string.Format(CustomImageHandler, task.Image) : TaskHelper.GetImageUrl(FlowTask);
           BitmapImage taskImage = new BitmapImage(new Uri(imageUri, UriKind.RelativeOrAbsolute));


Any help on this would be appreciated. Thanks.

Don
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem With Streamed Images
Reply #1 - Jan 8th, 2010 at 5:57pm
Print Post  
Do they display fine if shown in an Image control?
  
Back to top
 
IP Logged
 
dolfandon
Junior Member
**
Offline



Posts: 51
Location: Northern Virginia
Joined: Mar 12th, 2009
Re: Problem With Streamed Images
Reply #2 - Jan 12th, 2010 at 5:49pm
Print Post  
Ahhh, I love Silverlight. Wink Images cannot be streamed if the URI is relative. If I give the image the absolute URI it works fine.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint