this is how my code look now:
System.Drawing.Image objImage = System.Drawing.Image.FromFile(Server.MapPath(\"aaa.jpg\")); int height = objImage.Height; int widt
MapPath will give you a physycal address, not a virtual address which is what the browser needs to get to the image.