.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Out of Memory Error using C#.Net

Posted By: Narayanan     Posted Date: June 15, 2012    Points:5   Category :C#
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:
Stream buffer;
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
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend