473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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

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(100000);

byte[] arrResponse = new byte[10000000];
ntstrm.Read(arrResponse, 0, arrResponse.Length);

string str = System.Text.Encoding.ASCII.GetString(arrResponse);

return str;
Apr 4 '11 #1
1 1510
TRScheel
638 Expert 512MB
Please use [ code ] blocks for your code, makes it easier to make out.

Also, the thread.sleep seems a bit weird but maybe thats just out of place and Im not seeing it in context.

Have you tried getting the data in smaller chunks?
Apr 4 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Satinderpal Singh | last post by:
Hi All, To download the files from the http or https server, we have used WebClient object. But, the problem is we cannot specify timeout in the WebClient object. So, using HttpWebRequest...
0
by: Sachit | last post by:
I am working on an BIT application to download files from remote server using C#, There are an issue related with performance, I am downloading 3 files 28Kb, 79KB, 121KB respectivly on my...
2
by: r dubey | last post by:
Hi, I'm using webclient to enable download of files. However, files get copied to the server rather than the client machine. What could be the problem. Here is the sample that I've used: ...
1
by: Syed Aun Ali | last post by:
i have a device connected to a node computer(any client/server computer) in a intanet.the device sends data contineously.i want to store the data from device in a text box in the node computer as...
1
by: UJ | last post by:
My client has a product that downloads files from it's web server. It then will display these on a local machine. Problem is that this is on the customer's network which means, depending on the...
1
by: DaveF | last post by:
I am trying to figure out the best way to download images from a server that is password protected. This needs to be set up as a service? Can anyone point me in the right direction? Dave
1
by: vc4free | last post by:
Hello Everyone, I am trying to write a simple program to download files from tftp server, but I am have a very difficult time doing so because I am very very new to python. I have...
0
by: ckumarappan | last post by:
Hi all, Is it possible to download all the uploaded files in the webserver to company server for a company using Ms-Access as front end in database? If it is possible please suggest me...
3
by: axelman | last post by:
Hi guys, I'm using Classic ASP, IIS6, IE 7, FF 3 I've developed a vb script to downloand files hosted in my server (zip, doc, pdf, jpg, xls, et. etc.) it's very straight forward and there's a ...
0
by: kishoreforqns | last post by:
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(100000); byte arrResponse = new byte;...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.