Validating size of image before uploading to database

  • Thread starter Thread starter Charlie@CBFC
  • Start date Start date
C

Charlie@CBFC

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
 
Load your pic temporarily in Image object and take size

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

Pls, Give me feedback on it
 
Thanks!
Altaf Al-Amin Najwani said:
Load your pic temporarily in Image object and take size

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

Pls, Give me feedback on it
 
What if the Image-sucker is goodle X google pixels
How do you check the size before uploading.

SA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top