Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

getting image width and height of an image while uploading

Question posted by: dasrasmikant (Newbie) on May 1st, 2008 06:35 AM
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
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
jeffstl's Avatar
jeffstl
Expert
328 Posts
May 1st, 2008
02:04 PM
#2

Re: getting image width and height of an image while uploading
Quote:
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?

Reply
jhardman's Avatar
jhardman
Moderator
2,015 Posts
May 5th, 2008
08:48 PM
#3

Re: getting image width and height of an image while uploading
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

Reply
Reply
Not the answer you were looking for? Post your question . . .
170,098 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top ASP Forum Contributors