Scaline Image Files

Discussion in 'ASP.NET 2.0' started by vys, May 26, 2006.

  1. vys

    vys

    Hi,

    In my application I have a file upload box, which I use to upload files into a directory. The location information is then stored in my database for calling the picture for a certain product.

    My question is this, is it possible to upload the file and then have asp.net scale the image file?

    Say I upload a 1600x1200 image and I want ASP.net to scale the file itself down to 640x480 for both file size and having the pages load quicker. is this possible?

    Currently I'm scaling the pictures before I upload them and would like to cut out this step.

    Thanks
     
  2. Very doable. Look on codeproject.com for some of the image library components. They scale pictures on the fly. Code should port over nicely to what you want to do.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

  4. vys

    vys

    Thanks for the replies.

    Both sites were very helpful.
     

Share This Page