473,749 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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;
Apr 4 '11 #1
1 1552
TRScheel
638 Recognized Expert Contributor
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
1290
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 and HttpWebResponse the only way to do it ? or is there some other way with which we can specify timeout for WebClient object.
0
1757
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 system(Pentium 4, RAM 512MB, DSL connection) it is taking 15 to 25 seconds and shows 55-56 mx CPU usage but other system with same configuration and T1 Line its taking so much time, it is downloading these 3 files in hours and shows 100% CPU usage...
2
2994
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: WebClient myWebClient = new WebClient(); myWebClient.DownloadFile ("http://www.myweb.com/testfile.txt" ,"c:/test.txt");
1
1576
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 well as send them to other client or server machine who are requested for the data.i have a local intranet uses tcp/ip protocol
1
1212
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 customer, they may have secured the network down like crazy. To the point that may have no open ports, can't send data across to our server, ... My network engineer has essentially said we need to have the following criteria: 1. We can't hard...
1
919
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
3382
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 downloaded the tftpy-0.4.3 which have the TftpClient module and other good stuff, but I do not not know how to go about using python to connect to Tftp server Thank in advance for any help in pointing me in the right direction to get this thing...
0
957
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 about the soultion. Kumar
3
9739
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 lot of information around the web, however when it comes to dowload files from a remote server (NOT hosted in my server) there is no information :-(, the idea is to have an Access DB that stores the full url...
0
853
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; ntstrm.Read(arrResponse, 0, arrResponse.Length); string str = System.Text.Encoding.ASCII.GetString(arrResponse); return str;
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9388
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.