By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,144 Members | 892 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,144 IT Pros & Developers. It's quick & easy.

getting image width and height of an image while uploading

P: 30
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
May 1 '08 #1
Share this Question
Share on Google+
2 Replies

jeffstl
Expert 100+
P: 432
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?
May 1 '08 #2

jhardman
Expert 2.5K+
P: 3,405
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
May 5 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.