Fetching files using HTTP?

M

Mc Spooney

I know I can use openStream() but does that fetch the whole file before
reading or can u pysically read it across the network ?

Ie. i want to read some of the conrtents of large file but without the
overhead of having to pull the entire thing across the network first.
 
M

Matt Humphrey

Mc Spooney said:
I know I can use openStream() but does that fetch the whole file before
reading or can u pysically read it across the network ?

Ie. i want to read some of the conrtents of large file but without the
overhead of having to pull the entire thing across the network first.

You cannot physically read the file across the network with openStream.
Your request goes to a service on the file's host which does the reading for
you. There is a little-used protocol for selecting a range of a document,
but I'm not sure it's honored by typical web servers or even used anymore.
If you are writing the web service yourself you can always include
parameters for the file section to read and you'll only get those parts.

Matt Humphrey (e-mail address removed) http://www.iviz.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top