Last post May 07, 2009 02:57 AM by Nai-Dong Jin - MSFT
May 06, 2009 05:32 AM|pamyral_279|LINK
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.
May 07, 2009 02:57 AM|Nai-Dong Jin - MSFT|LINK
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.