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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:01:34+00:00 2026-05-23T12:01:34+00:00

As recommended in ASIHTTPRequest documentation, I use setDownloadDestinationPath to download images from remote server.

  • 0

As recommended in ASIHTTPRequest documentation, I use “setDownloadDestinationPath” to download images from remote server. In some situation the server answer an Error 404, file not found.
The Error 404 page is then donwloaded in local file.png for example…

What is the recommended way to avoid such behaviour ? How to manage to not create image if the file does not exist on server ?

Thanks for your help !

Solved (detail bellow)

The magick key word is [request responseStatusCode] –> A valid OK HTTP response code is 200. For other codes I just delete (using NSFileManager) the created file.

Hope it can help others

kheraud

  • 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-05-23T12:01:34+00:00Added an answer on May 23, 2026 at 12:01 pm

    The magick key word is [request responseStatusCode] –> A valid OK HTTP response code is 200. For other codes I just delete (using NSFileManager) the created file.

    Hope it can help others

    kheraud

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

Sidebar

Related Questions

The following script was recommended to use a List Page to show a Google
Would it be recommended to use href=tel:XXXXXX for contact telephone numbers on web pages?
Possible Duplicate: Recommended way to initialize srand? I am extracting frames from AVI. I
As recommended by http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-static-resources I wish to use <mvc:resources> for serving my spring static
What is the recommended way of joining SQL Server database tables located on databases
I've been recommended the Click framework from Apache. But I can't find any forums
What is the recommended (cross-browser) video format to use on websites so that users'
Someone recommended I use code completion and I realized that while my IDE has
What is the recommended tool for developing against a Microsoft SQL Server database? We
I need to implement posting some data to a web server in the background.

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.