uploaded FILES to server problem!

  • Thread starter Thread starter jax
  • Start date Start date
J

jax

HI DEAR DEVELOPERS ! :))
If anyone has 1 minute to explain me something :

How to find out the width and height of a picture
that has been uploaded through HTML inputfile control
to the Server ?

THNX...Long live ASP.NET :))
 
You can use the byte stream to load an Image object. From there you should
be able to get the dimensions.
 
Ok, I'll create 8000x8000px image and save it as JPEG file - only 1M in
size, like most DigiCam files, but this one pushes ASP.NET app to restart.
Nice try to get server down :)
Better is to check the PostedFile stream for headers and then to load it to
Bitmap object if it's OK.
But the problem - it is not so easy to find such functions. Takes time.
 
Back
Top