System.UriFormatException

Viewed 10459

I'm facing a problem in c# System.URI.FormatExption

To make things clear I'm using a Matlab method which is Segseuil and it returns a picture path result. I wanted to save this image for other users but the exception appears.

private void segmenter(object sender, RoutedEventArgs e)  {
 s.SegSeuil(0, (MWCharArray)name, (MWCharArray)result);
 BitmapImage tmp = new BitmapImage(new Uri(result));  // exception here 
 image.Source = tmp;

}
1 Answers
Related