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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:37:00+00:00 2026-06-11T11:37:00+00:00

I know how to fetch data from NSSURL, but i wana ask how i

  • 0

I know how to fetch data from NSSURL, but i wana ask how i can filter the data like the page contains both text, images , videos etc how i can specify like only to extract images. And lets say if all the data is downloaded all together how i can filter it.

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


    NSLog(@"%@",str);
    [receivedData appendData:data];
}

Like in this how i can filter if all the data is downloaded all together. or to specify the type of data before downloading. thx in advance

  • 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-11T11:37:01+00:00Added an answer on June 11, 2026 at 11:37 am

    From NSURLResponse you can check MIMEType

    NSURLResponse * httpResponse = (NSURLResponse *) response;
    NSString *fileMIMEType = [[httpResponse MIMEType] lowercaseString];
    

    You can consider using this delegate method for NSURLConnection

    - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
    
       NSString *mime = [response MIMEType];
       //do something with mime
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to know if there is a simple way to fetch data from
Fortunately, I know how to fetch data from the database, That's not a problem.
I'd like to fetch data from a table ordered by priority column that is
I need to fetch data from a URL with non-ascii characters but urllib2.urlopen refuses
My app is running on domain example.com , but I fetch some data from
I'd like for Jenkins to automagically fetch data from my private repository hosted on
I have written a code like this to fetch data from database using HQL:
I need to know, how to fetch class name from div instead of id
I know you can not set a key value dynamically, but what about the
I want to create my own RSS/XML feed. I fetch data from the database

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.