Results 1 to 5 of 5

Thread: Resize uploaded image

  1. #1

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375

    Resize uploaded image

    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

  2. #2
    Lively Member
    Join Date
    Sep 2006
    Location
    Minnesota
    Posts
    81

    Re: Resize uploaded image

    Can you post your code?
    "Crowded elevator always smell different to midget."

  3. #3
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: Resize uploaded image

    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.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    261

    Re: Resize uploaded image

    I want to see the code as well....Do tell....

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Resize uploaded image

    Try .Dispose()ing the file object after saving it, then calling gc.collect().

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width