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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:18:23+00:00 2026-06-14T15:18:23+00:00

My app contains some images which needs to be dynamically loaded from web server

  • 0

My app contains some images which needs to be dynamically loaded from web server through XML file. Every time when changes done in admin console at web server it should reflect in iPhone app too through the XML file. I wrote XML file but dont know how to get used in iPhone code. I referred the following links,

how-to-retrieve-data-through-xml-in-iphone-locally-file

dynamically-pulling-images-from-xml-for-iphone-app

how-to-change-the-tabbaritem-images-dynamically-in-iphone-app

retrieving-images-to-iphone-app-through-xml

but all these links are not clear for me to understand. Kindly suggest me a way to do it.

  • 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-14T15:18:24+00:00Added an answer on June 14, 2026 at 3:18 pm

    So I assume your web server can serve an XML which includes the image in some encoded format like base64. Then you need to:

    1. Load the file. For this, you should use NSURLConnection, e.g. as described in how-to-make-http-request-from-iphone-and-parse-json-result
    2. Parse the XML. Instead of parsing a JSON, you need to parse your XML, so first, you need an XML-parser. Here is a comparison of XML parsers. Then you should access the element in the XML that represents your image. This step depends on your choice of the parser.
    3. Decode the Image. Your element is probably an NSString and you want to have its binary representation as NSData. NSData has some convenience functions for this. E.g. for base64, there is the dataFromBase64String: constructor.
    4. Create the image. That is, UIImage using the imageWithData: constructor.
    5. Display the image. You need an UIImageView and assign to it your UIImage. Set the frame of the view and add it to your preferred subview.

    It is also possible that the XML provides URLs where to get the image data. Then you have to do a new request. This should be clear by now, how to do.

    Good luck.

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

Sidebar

Related Questions

Our web server is structured as follows /path-to-docdir [Contains main pages] ./app/ [Some application
I have an app which contain some images in res/drawable/ and shows them in
So I have this php web app, and one of my folder contains some
I have an iPhone app which contains around 80 PNG format images measuring 300x300
I have an app widget which displays some rss feeds.It contains a text view
I have a QGraphicsView contains a QGraphicsScene which loaded an image. What my app
I'm using Bootstrap on a web app that has some pages that contain iframes.
I have an app which contains a scrollview with several tableviews. Each tableview is
i am developing a app which contains feature like default photo browser in iphone.
I have an Android App which contains an external dependend jar library. This external

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.