Associate
- Joined
- 3 Jun 2008
- Posts
- 411
Hi,
Is there a way of getting the dimensions of a .jpg, .png, and .gif in .NET without having to read the entire image which consumes a shed load of memory. If a user uploads a 100000px image to my site, I would just like to discard it without exposing myself to a DoS attack. There must be some kind of libs for getting this from the image header info.
Is there a way of getting the dimensions of a .jpg, .png, and .gif in .NET without having to read the entire image which consumes a shed load of memory. If a user uploads a 100000px image to my site, I would just like to discard it without exposing myself to a DoS attack. There must be some kind of libs for getting this from the image header info.