Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Upload and cropping software

Author  Topic 

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-06-10 : 07:53:56
hi,
I am wondering how i could

1. upload with .net and crop the image.
2. I would also like to be able to read the image size before starting the upload, and if the image is larger than a certain size, to alert the user

Pls note: What would i use to check the image size? A javascript or .net ?

thanks

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-06-10 : 08:01:22
Not sure about either question, but a .Net forum would be a better place to ask, such as:

http://aspnet.4guysfromrolla.com/
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-06-10 : 08:08:21
Ok,
thanks robvolk, am looking at it now.

Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-06-10 : 09:30:26
actually www.codeproject.com has some image thumbnailing and cropping .net code. It might be a better place to start.


Damian
"A foolish consistency is the hobgoblin of little minds." - Emerson
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-06-10 : 10:03:47
I just got this one, excellent article

http://www.developer.com/db/article.php/3426051
Go to Top of Page

jhermiz

3564 Posts

Posted - 2005-06-10 : 10:35:23
To get the file size:

Dim fInfo as new System.Io.FileInfo("path\nameoffile.whatever")

'fInfo.Length gets the size of the file

If fInfo.Length > 0 then
'do something
else
'do something else
end if




Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Imperfection living for perfection --
[url]http://jhermiz.blogspot.com/[/url]
Go to Top of Page
   

- Advertisement -