how to download files (2mb>) [server to client]using networkstream from mailserver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kishoreforqns
    New Member
    • Aug 2010
    • 3

    #1

    how to download files (2mb>) [server to client]using networkstream from mailserver

    now i am using this code. but here i cannot get more than 2 MB of data.. can anybody help. to be frank i am new to this area.. thank you


    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;
Working...