May 03, 2011 02:11 PMfirstname.lastname@example.org|LINK
There is a free, open-source library to handle all the encoding and resizing issues. It supports uploads as well as MS SQL.
If you decide to roll your own, make sure you read the following article.
20 Image Resizing Pitfalls in .NET
A lot of the rookie mistakes are not obvious, and not documented well.