Thumbnail image for 400mb file

Last post 07-23-2009, 2:42 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  07-20-2009, 1:51 PM 54127

    Thumbnail image for 400mb file

    Hi Terry,
    I know this is not pertaining to ajaxuploader directly but your inputs are really helpful.
     
    After uploading the images upto 400mb in size thru ajaxuploader(this works perfectly allright)  , I need to generate the thumbnail image in asp.net but when it tries to load the image into System.drawing.image varialbe I get out of memory exception.
     
     
    The strange thing is that , if I do the same thing in a totally new web applicaiton, it works but the same code in existing webapplication does not work.
     
     
    Is there any  memory limit on the web application? (i adjusted the memory limit in machine.config, increate the virtual memory but does not help)
     
     
    Please help
    Thanks
  •  07-23-2009, 2:42 AM 54217 in reply to 54127

    Re: Thumbnail image for 400mb file

    Hi,
     
    I suggest you generate the thumbnail to another temp folder in the FileValidating event , and move it back in the FileUploaded event.
     
    And please check our advanced sample , the personal photo sample . We make thumbnail by drawing it to another image.
     
    Regards,
    Terry
View as RSS news feed in XML