Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I am getting the same exception when i convert the very large files data pulled from MongoDB and converted to string then to ASCII. Here is the line of code.

Data = Encoding.ASCII.GetBytes(inputParameters.ToString());

where input parameters has DB data. And I have one more question is Is MongoDB Capable of giving around 6000+ records from one collection based on LINQ Filtering. I observed that it is taking much times.

Please reply I strucked here.

What I have tried:

Data = Encoding.ASCII.GetBytes(inputParameters.ToString());


it is throwing system.OutOfMemory exception.
Posted
Updated 24-May-18 19:04pm

1 solution

there are many reason for this exception. Please review the stack trace for more information about the error and where it originated in the code.

there is a detailed description available ...

click here to visit the link...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900