how to download files (2mb>) [server to client]using networkstream from a mailserver..
i can conenct to the mail server, list unread mails, and i can also retreive unread mails. but that till 1.5 mb. how to do this.. what concept i have to use.. how the server is sending the data..
now i am using the code given for retreive (RETR)
Thread.Sleep(10 0000);
byte[] arrResponse = new byte[10000000];
ntstrm.Read(arr Response, 0, arrResponse.Len gth);
string str = System.Text.Enc oding.ASCII.Get String(arrRespo nse);
return str;
i can conenct to the mail server, list unread mails, and i can also retreive unread mails. but that till 1.5 mb. how to do this.. what concept i have to use.. how the server is sending the data..
now i am using the code given for retreive (RETR)
Thread.Sleep(10 0000);
byte[] arrResponse = new byte[10000000];
ntstrm.Read(arr Response, 0, arrResponse.Len gth);
string str = System.Text.Enc oding.ASCII.Get String(arrRespo nse);
return str;
Comment