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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:41:37+00:00 2026-06-06T07:41:37+00:00

From my server I’m pulling down a url that is supposed to simply be

  • 0

From my server I’m pulling down a url that is supposed to simply be a profile image. The relevant code for pulling down the image from the urls is this:

NSString *urlString = [NSString stringWithFormat:@"%@%@",kBaseURL,profile_image_url];
profilePic = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:urlString]]];

My url is in the format (note no file extension on the end since its dynamically rendered)

localhost:8000/people/1/profile_image

If I load the url in my browser the image displays; however the code above for pulling down the UIImage does not work. I’ve verified that the code does pull an image from a random site on the interwebs.

Any thoughts on why this is happening?

  • 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-06T07:41:39+00:00Added an answer on June 6, 2026 at 7:41 am

    Does it work if you feed NSURL

    http://localhost:8000/people/1/profile_image
    

    I imagine that the http:// is important here (so that the NSURL knows whether it’s pointing at a file or remote URL).

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

Sidebar

Related Questions

i have a color code coming from server and I am using that color
I am binding imagesource from server. While binding the image in not shown unless
I get data from server: store = new dojox.data.QueryReadStore({url:http://url_with_data}); ... myGrid = new dojox.grid.DataGrid({id:myGrid2,selectionMode:none,style:height:
How can i download all directory from server recursively. I use WinINet and this
i m trying load UIImages from server asynchronously in UITableViewCell. My code worked fine
i am getting response from server in utf-8 but not able to read that.
I have a response from remote server like this: /home/computer/Downloads |-- /home/computer/Downloads/Apple | `--
Possible Duplicate: How to get Url Hash (#) from server side c# get complete
My json data returned from server is like this: { total: 3, page: 1,
I am getting time from server it's like this 12:00PM-3:00PM,7:00PM-10:30PM This time in 12

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.