469,616 Members | 1,823 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

Validating size of image before uploading to database

Hi:

I'm working on an application that uploads images into binary fields on SQL
Server. Before submitting, I would like to validate size of image (ie, 75
pixels by 75 pixels) so that images are always correct size. How do I
programmtically validate image size?

Thanks,
Charlie
May 18 '06 #1
3 2366
Load your pic temporarily in Image object and take size

System.Drawing.Image a = new Image();
a.Size

Pls, Give me feedback on it

"Charlie@CBFC" wrote:
Hi:

I'm working on an application that uploads images into binary fields on SQL
Server. Before submitting, I would like to validate size of image (ie, 75
pixels by 75 pixels) so that images are always correct size. How do I
programmtically validate image size?

Thanks,
Charlie

May 18 '06 #2
Thanks!
"Altaf Al-Amin Najwani" <al**********@gmail.com> wrote in message
news:60**********************************@microsof t.com...
Load your pic temporarily in Image object and take size

System.Drawing.Image a = new Image();
a.Size

Pls, Give me feedback on it

"Charlie@CBFC" wrote:
Hi:

I'm working on an application that uploads images into binary fields on
SQL
Server. Before submitting, I would like to validate size of image (ie,
75
pixels by 75 pixels) so that images are always correct size. How do I
programmtically validate image size?

Thanks,
Charlie

May 18 '06 #3
What if the Image-sucker is goodle X google pixels
How do you check the size before uploading.

SA
"Altaf Al-Amin Najwani" <al**********@gmail.com> wrote in message
news:60**********************************@microsof t.com...
Load your pic temporarily in Image object and take size

System.Drawing.Image a = new Image();
a.Size

Pls, Give me feedback on it

"Charlie@CBFC" wrote:
Hi:

I'm working on an application that uploads images into binary fields on
SQL
Server. Before submitting, I would like to validate size of image (ie,
75
pixels by 75 pixels) so that images are always correct size. How do I
programmtically validate image size?

Thanks,
Charlie

May 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by John Smith | last post: by
reply views Thread by Gary Shell | last post: by
11 posts views Thread by Parrot | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.