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

  • Home
  • SEARCH
  • 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 8880623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:11:58+00:00 2026-06-14T20:11:58+00:00

I got a question: How I understand this: iOS Note: The NSURLDownload class is

  • 0

I got a question: How I understand this:

“iOS Note: The NSURLDownload class is not available in iOS, because downloading directly to the file system is discouraged. Use the NSURLConnection class instead. See “Using NSURLConnection” for more information.”

there is no possibility to store a download directly in the Filesystem. But if I use “NSURLConnection” instead and download a file(lets say it is like 500MB) does it store in the RAM or somewhere else in like a Temp-Folder in the Storage-System?

If it stores in the RAM, is it possible to anyway save it directly to the disk?

Thanks

  • 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-14T20:11:59+00:00Added an answer on June 14, 2026 at 8:11 pm

    What this means is that it’s discouraged to download directly to a file on the filesystem, a convention common to desktop computers, but rarely seen on iOS.

    The data will not always be stored in RAM, the size of the file will probably far outweigh the amount of RAM available on the device, as it’s fairly limited. The response from a NSURLConnection will be stored in the cache; it’s still written to disk, but the OS keeps track of it, not your application. Because this is an OS implementation detail, which application developers should not be concerned with, there’s no guarantee where this data will be stored, and hence try not to access it directly via the filesystem.

    You can of course save the data to disk, under your control, once you receive the data from NSURLConnection. To do so, set up your NSURLConnection using this guide. The important thing is to set up your NSURLConnectionDelegate correctly. See this documentation regarding the protocol.

    The method you’re interested in is this one (which is a required method anyway!)

    - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
    

    Once you have the NSData available to you, you can do as you wish with it. You save save this data to disk, see the documentation on NSData on how to do this.

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

Sidebar

Related Questions

I understand how to code this all. My question is: say I got a
I am doing a review with my professor's lecture note. I got this question
I've got a question about floating point precision. As I understand it, ULP is
Got a question for some jQuery wizard who might stumble upon this. When I
Got a question for you all! I'm trying to make a navigation system for
This question got me thinking about bare strings. When PHP sees a string that's
I need to understand this piece better because when I reached that step in
From this question How to understand the non-fair mode of ReentrantReadWriteLock? , I think
I was looking at this SO question and got to thinking about const ints
I got to think I don't understand how it works. My specific question is:

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.