I have an error in following code
Uri imagesrc = new Uri("http://somewebsite.com/demo/images/slideshow/29.jpg");
Image image = Image.FromFile(Path.Combine("/comph/", imagesrc.ToString()));
I have also tried following code - where /comph/
is my root directory
Image.FromFile(Path.Combine("/comph/","http://some_other_website.com/demo/images/slideshow/29.jpg");
The above image URL is correct when I paste this URL in browser it shows the image.
With the above code an exception is raised:
The given path's format is not supported.
What is wrong with this code ?