PDA

Click to See Complete Forum and Search --> : Resize uploaded image


MarkusJ_NZ
Sep 4th, 2003, 01:02 AM
Hi all, I want to be able to resize an image that a user has uploaded.

I have the image upload working as well as the image resize. When I go to delete the original uploaded file (I want to replace the uploaded file with the new resized version) I get a
"file being used by another process" error. I therefore cannot replace the uploaded image with the new thumbnail.

How can I get around this???

Thanks
MarkusJ

tbutts
Sep 21st, 2006, 09:49 AM
Can you post your code?

dogboydelta
Sep 21st, 2006, 10:30 AM
How do you resize the image? This error often occurs on a file when you have something like a FileStream that is not properly closed.

seidel1
Sep 22nd, 2006, 09:08 AM
I want to see the code as well....Do tell....

mendhak
Sep 22nd, 2006, 01:33 PM
Try .Dispose()ing the file object after saving it, then calling gc.collect().