locked
thumbnail in asp.net RRS feed

  • Question

  • User-513628628 posted

    Hi all,
    i have googled around web but don't find results which i wish.I have a lot pictures,size of pictures are quite big (5-10mb).
    Now i want to thumbnail that images,but error is usually "out of memory",

    Any one help me or give me ways to solve ?
    Thank you very much.

    Wednesday, May 6, 2009 5:32 AM

Answers

  • User-1136466523 posted

    Hi,

    This is because the GetThumbnailImage needs access to the original file. If you have loaded the image using System.Drawing.Image.FromStream you will get an out of memory exception.

    You need to use Image.FromFile to load the original image instead.

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 7, 2009 2:57 AM