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

Validating size of image before uploading to database

P: n/a
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
Share this Question
Share on Google+
3 Replies

P: n/a
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

P: n/a
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

P: n/a
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.