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.
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 userPls 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/ |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-06-10 : 08:08:21
|
Ok, thanks robvolk, am looking at it now. |
 |
|
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 |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-06-10 : 10:03:47
|
I just got this one, excellent articlehttp://www.developer.com/db/article.php/3426051 |
 |
|
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 fileIf fInfo.Length > 0 then 'do somethingelse 'do something elseend if Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]Imperfection living for perfection -- [url]http://jhermiz.blogspot.com/[/url] |
 |
|
|
|
|