On upload of an image file, I want to check its width/height. So far the only way I have found to this is to create an image file out of it either though accessing the memory stream or saving the file o disk, both of which are memory intensive operations.
Perhaps its possible to read the metadata of the file, though I suspect that differences between image types will make this process cumbersome.