I am getting this error
System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(String filename) at PressRoom.ImageHandler.getResizedImage(String path, Int32 width, Int32 height)
At line
byte[] getResizedImage(String path, int width, int height)
{
if (path!=null)
{
Bitmap imgIn = new Bitmap(path); // exception is thrown
double y = imgIn.Height;
double x = imgIn.Width;
}
How do I handle this exception?