Several weeks ago I mentioned that I store the images that the user uploads to the system into the database.
Some of you have expressed an interest in how I do that. So I plan to cover that today.
For the purposes of this article, I’m going to assume that you’ve already got the image uploaded and scaled and that all that is left is getting it into the database.
Continue reading “Storing An Image To a Database in .NET”
One feature of .NET that I use regularly is image scaling. I typically use this on web sites that need image upload capabilities. I assume the user is going to send me an image that is significantly bigger than what I could use and then scale it down before storing it.
I also use this feature so that I only have to store one image. If I need it at a different size, I can scale it prior to sending it down to the browser. In this case, I implement .NET page caching so that I don’t have to run the scaling code every time the image is requested.
Image scaling really isn’t that hard. Here’s how it’s done.
Continue reading “.NET Image Scaling in CSharp”