Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Out of Memory Error using C#.Net
June 15, 2012
I copied a Image file(like jpeg,tif,bmp) from one location to another location. But I got "Out of Memory Error" .So How can i solve this problem?
I am using below code:
StreamReader srImage = new StreamReader(InputPath);
buffer = srImage.BaseStream;
Bitmap bmImage = new Bitmap(buffer);
StreamWriter srSettings = new StreamWriter(OutputPath);
It works fine. But File length is greater than 1MB.It doesn't work.So How can i solve this?
No response found. Be the first to respond this post
To post reply
Related Questions Related Questions
While running ASP.NET in IE it shows error like this
How to access triggers error message in asp.net..
Error at reading xml data in C#.NET
Error while running on IIS
Error In Encryption
Error in Web Setup Project while using Installer Class aError in Web Setup Project while using Installer Class and Custom Actions "Object reference not set to an instance of an object"nd Custom Actions "Object reference not set to an instance
ASP.NET - Error throwing or logging
Create new Database connection error
Error creates when install the SQL Server
Latest Forum Questions From The Same Category
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend