Author: neve | Posted on: 9/18/2008 9:10:55 AM | Views : 284

Hi

The following code allows me to successfully upload an image to my sql database from a simple webpage. It is possible to add to this code and resize the image 'on the fly', to a set size whilst keeping the aspect ratio?

Please help as I'm losing the will to live, thanks in advance, nev.

'Load FileUpload's InputStream into Byte array

Dim image1(uploadedFile.PostedFile.InputStream.Length) As Byte

uploadedFile.PostedFile.InputStream.Read(image1, 0, image1.Length)

myCommand.Parameters.AddWithValue(Go to the complete details ...