Hi,
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);
srSettings.Write(bmImage);
It works fine. But File length is greater than 1MB.It doesn't work.So How can i solve this?Please do needful.
Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/