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 7717161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:48:57+00:00 2026-06-01T02:48:57+00:00

When we download the file from web server it first stored in phone memory

  • 0

When we download the file from web server it first stored in phone memory and at define moments the data are flushed on the SD card to not fill up the RAM.

But when the connection crashes, users set the phone to fly mode, leaves the WLAN coverage area, etc. normally the file download must be started from the beginning.

This is both waste of time and money for user and waste of network resources and phone battery.

To be able to continue an interrupted download we plan to use the Range HTTP headers. What is the correct use for that?

Do we need to remember the original length of the file from the Content-Length header or we should send HEAD instead (that should give us the actual file size…) or there is not need to store the original size and send in the next HTTP GET request following headers and skipping the final file size (below I assume that 555bytes was already downloaded):

Accept-Ranges:bytes
Range: 555-

Thanks and regards,

STeN

  • 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-01T02:48:59+00:00Added an answer on June 1, 2026 at 2:48 am

    You don’t need the full file size, but you should use the

    Range: bytes=555-
    

    header, and you must also verify that the server can handle your request, and that it replies with

    HTTP 206 Partial Content
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement an Asynchronous file download from a web server using
I'm trying to download a large file from my Yahoo! web site server which
I'm trying to download a large .zip file from a web server but I
I want to download a wav file from a web service, cache it on
I need to download file from FTP server and make some changes on it
I'm trying to use SQL Server 2000 DTS Package to download a file from
I want to download a PDF file from a SQL Server database which is
I am developing an web application which can upload/download a file from client to
I'm tryinig to load a file from a web server with a request URL
Is there a difference between directly downloading a file from a web server, and

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.