I have a Webpage , were I use the FileUpload to upload an Image into a SQL Database. It all works fine. The
FileUpload-Control returns the Image in a binary Format (byte[]). I need to produce from the uploaded Image (large) a small one. I was wondering if there was a way to achief this directly with the byte[] Type and using some kind of Algorithm. At the end
I need in my Database to image Fields with small and large Images, both generated from the large Image. I am choosing this way for performance reasons,so that when I want to display a list with the small pics it will be faster.
If anybody has any CodeExamples or hints, I would be very greatfull indeed, Thanks a lot
bolla1
Member
128 Points
47 Posts
Changing the Size of an Image directly in the byte[] Type Format
Jun 20, 2007 06:18 AM|LINK
Hello Everyone,
I have a Webpage , were I use the FileUpload to upload an Image into a SQL Database. It all works fine. TheFileUpload-Control returns the Image in a binary Format (byte[]). I need to produce from the uploaded Image (large) a small one. I was wondering if there was a way to achief this directly with the byte[] Type and using some kind of Algorithm. At the end I need in my Database to image Fields with small and large Images, both generated from the large Image. I am choosing this way for performance reasons,so that when I want to display a list with the small pics it will be faster.
If anybody has any CodeExamples or hints, I would be very greatfull indeed, Thanks a lot