I am trying to access height and width of an System.Drawing.Image.
Image image = Image.FromFile(PostedImage.ImageUrl.ToString());
int ActualWidth = image.Width;
int ActualHeight = image.Height;
I am getting error
URI formats are not supported.
How can this be done?
You have to pass a path to a local file or one on a network drive.
If the string you give it is to a web resources, you have to first download it.