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
Latest Forum Questions From The Same Category
Delete Row and Select Next Record in DatagridView
How to take backup and restore of local database?
How to reduce size of PPT file generated form OpenXML
how to pass parameter
COM object that has been separated from its underlying RCW cannot be used. in C#.net
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