473,387 Members | 1,859 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,387 software developers and data experts.

Problem Downloading a zip archive using HttpWebResponse

Hello,

I am trying to download zip files over HTTPS with the HttpWebResponse object in C#. I've stepped thought the code and what seems to be happening is the Stream.Read method will only return 1040 Bytes from the stream regardless of the size of the file. Is anyone else having this problem??
Cole

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Jul 21 '05 #1
1 2077
It can only read as much as the buffer that you provide will allow. What is
the size of the buffer that you are using and are you reading the content in
some kind of loop?

"DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
news:#A**************@tk2msftngp13.phx.gbl...
Hello,

I am trying to download zip files over HTTPS with the HttpWebResponse object in C#. I've stepped thought the code and what seems to be happening
is the Stream.Read method will only return 1040 Bytes from the stream
regardless of the size of the file. Is anyone else having this problem??

Cole

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup

engine supports Post Alerts, Ratings, and Searching.
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bruce Wiebe | last post by:
hi all Im having a big problem connecting to a SSL site (HSBC Bank) using httpWebRequest. what i need to do is connet to the site and pass over an xml string and read the response. Im pretty...
16
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the...
2
by: VBTricks.de.vu Webmaster | last post by:
Hello everybody, I need to download a file from the web using the HTTP-Protcoll. But unfortunately I'm a total newbie. Found the following snippet some posts ago: Public Function...
1
by: DotNetJunkies User | last post by:
Hello, I am trying to download zip files over HTTPS with the HttpWebResponse object in C#. I've stepped thought the code and what seems to be happening is the Stream.Read method will only return...
8
by: jdhancock | last post by:
Can someone give me an example of how I can execute a program on a corporate server and then download the response to the user? I'm not sure if I'm asking this right. Here is the asp code used...
3
by: kelvin | last post by:
Can anyone tell me what could cause the error below? Starting installation ... Loading zlib: ok Downloading package: PEAR-stable......ok Downloading package: Archive_Tar-stable....ok...
4
by: PiotrKolodziej | last post by:
hi I have a thread that downloades a file. Problem is : Not all files are beeing downloaded. I observed that only the small files are beeing downloaded correctly. I also cant download two files...
6
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I'm trying to download a binary ZIP file using HTTP. Following an example in MSDN and other sources, my code is: WebClient client = new WebClient();...
2
by: raids51 | last post by:
I am trying to download a file from the internet using webrequest... but most of the time i try to download a file it only downloads a small portion of the file...any help would be greatly...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.