locked
Out of memory Exception RRS feed

  • Question

  • User1436298894 posted

    Hi,

          I have to Upload a file which is upto 10MB(only rtf or text files). i am using fileupload component and i am able to recieve the file as httpPostedFile. But the problem for me is when i tried to read the contents and post it to Database, Then server throws out of memory Exception.

         Quite interestingly this does not happens in Developer machines but this happens in production enviornment. i am using StringBuilder to read the content. Here string builder is created and read the contents. But when i am adding it as a sqlparameters i have to read the contents and make it to string[]. That is where it throws the exception.

    Anyone have any idea about how to solve this issue?.

     Thanks in advance

    Bijo.

    Tuesday, February 10, 2009 12:56 PM

Answers

  • User-823196590 posted

    Are you using ASP.NET?  If so, http://forums.asp.net/ seems like a more appropriate place to ask ...

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, February 10, 2009 1:35 PM

All replies