Hello, I have some code that performs the following 5 things with an image:
1. Grabs an image from the file upload control.
2. Resizes the file size of the image and the image dimensions (makes it smaller most of the time).
3. Re-orientates the image if it needs.
4. Saves the resized image file in a directory.
5. Inserts the image to SQL Server
Everything appears to be working except step 3 above. I put a break in the code and it tells me my variable rotationValue is 6. That makes sense, as my image does appear to being rotated 90 degrees left and needs to rotated to look correct. This code is
doing everything except the rotation and I can't figure out why. Perhaps I have an invalid variable assignment or none at all where I need to. Help appreciated. Code below:
Dim uploadPicture As FileUpload = DirectCast(fvWine.FindControl("uploadPicture"), FileUpload)
'** ...
Go to the complete details ...