getting image width and height of an image while uploading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dasrasmikant
    New Member
    • Jan 2008
    • 30

    getting image width and height of an image while uploading

    Hy experts,

    I want to send a width and height of an image to the database while uploading it.

    Can any one guide me??

    Thanks
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by dasrasmikant
    Hy experts,

    I want to send a width and height of an image to the database while uploading it.

    Can any one guide me??

    Thanks
    To my knowledge there is no way to "measure" an image width\height in run time code in vb\asp.

    What you would need is the width and height already established in a excel table or file that can be read into your database as a file to be processed with the corresponding file names in it or something.

    Or you can have text box fields where you can enter the file path, the width and the height, then hit upload to do your processing.

    Is this what you mean?

    Comment

    • jhardman
      Recognized Expert Specialist
      • Jan 2007
      • 3405

      #3
      For Gif files there is a designated place about 10 characters from the start of the file that specifies the size, a 10 by 10 picture starts out something like this: g i f 8 9 a ... 10 0 10 0 ... I would imagine that other image formats have similar size tags near the beginning of the file.

      Jared

      Comment

      Working...