find the size(width & height) of the image before uploading C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gopim
    New Member
    • Nov 2007
    • 30

    find the size(width & height) of the image before uploading C#

    i uploaded image into database.but i want to restrict if images having more size(width & height) before uploading into database. could any please give information regarding this
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by gopim
    i uploaded image into database.but i want to restrict if images having more size(width & height) before uploading into database. could any please give information regarding this
    Have you seen the System.Drawing. Image Class? It has properties for determining the dimensions of images and much more.

    If you're developing an ASP.NET Web Application, this article might also be helpful to you.

    -Frinny

    Comment

    Working...