Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8519777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:20:49+00:00 2026-06-11T06:20:49+00:00

My goal is to read only the bytes from a file on a remote

  • 0

My goal is to read only the bytes from a file on a remote server starting at a particular byte position in the file without unnecessary data transfer. My concern is that without specifying an end byte, the entire file from the start byte is put into a buffer before any reads occur.

When one specifies a byte range in this fashion:

urlConn.setRequestProperty("Range","bytes="+byteRangeStart+"-")

and then subsequently obtains an InputStream, will that InputStream contain all the bytes of the file from byteRangeStart to the end of the file meaning that all the data is transferred when the InputStream is obtained or are bytes only transferred when the InputStream is read from?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:20:51+00:00Added an answer on June 11, 2026 at 6:20 am

    Asking the server to start at a specific position won’t affect how the URLConnection works in the client.

    When you read the InputStream on the URLConnection, data will only be transferred as you read it. There will be some data in network buffers at either end and so on of course, but I assume we’re talking about a reasonably large file here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My goal is to read the data stored in a bio (assuming that it
My goal: To read the points from a Geography Polygon stored in my PostGIS
My goal is to be able to read new messages from a gmail account
My goal is to transmit *.wav file over LAN network without delay or with
I have a database table, my goal is to read in each of the
My goal is to provide something like a Read More link next to a
The goal of the following code sample is to read the contents of $target
Goal: Produce an Excel document with information from 3 associated models that is similar
I have Atom-32bit-intel board n450 with only BIOS in it, my goal is to
My goal is actually to dump all the data of a database to an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.