Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Fetching files using HTTP?

Thread view: 
Mc Spooney - 22 Oct 2006 15:57 GMT
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.
Matt Humphrey - 24 Oct 2006 16:38 GMT
>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 matth@ivizNOSPAM.com http://www.iviz.com/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.