none
A generic error occurred in GDI+ RRS feed

  • Question

  • When I want to upload a picture or jpg on my web site i use my Image Class like this

    public class ImageResizer
    {
        public static string Resize(string path, Image img, bool insert = false)
        {
            Bitmap bmp = new Bitmap(img, 200, 200);
            if(insert)
                path = Guid.NewGuid().ToString().Replace("-", "") + Path.GetExtension(path);
            bmp.Save(HostingEnvironment.MapPath("~/images/" + path));
            return path;
        }
    }
    

    but i have exception from A generic error occurred in GDI+. Please Help me!!!

    Tuesday, January 22, 2013 9:56 AM

Answers