469,946 Members | 2,174 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

Peculiar WebRequest behaviour when specifying range with AddRange

I have built a downloading engine that is designed to use the HttpWebRequest
and HttpWebResponse classes to draw files in 64K chunks, rather than pull a
file all at once. This is to ensure that the client is never overtaxed with
huge byte arrays or streams going into memory as the downloaded file is
written out to the file system.

It generally works really well - for image file types, PDF file types, and
raw data formats, I'm ecstatic about how well it works. However there's one
peculiar behaviour, and perhaps somebody has some insight.

For the Microsoft Office formats, the files do not arrive properly - they
are corrupt and unopenable. I've windiffed them against the originals and it
looks like there are huge gaping holes in the files - as though the data
offered by the web server has been truncated. I'm assuming this has
something to do with how IIS handles the mime types for PowerPoint and Excel
(the two formats where I noticed the troubles.)

has anyone got any insight on what might cause this, and how I can draw
these files by ranges?


Apr 20 '06 #1
0 964

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by C# Learner | last post: by
2 posts views Thread by George | last post: by
3 posts views Thread by George | last post: by
1 post views Thread by Richard K Bethell | last post: by
33 posts views Thread by dragoncoder | last post: by
173 posts views Thread by Ron Ford | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.