Design mobile apps to download images stored as objects in the cloud

Get the code

Summary

Mobile applications can interact with data that is stored as objects in the cloud, not only for archiving, storage, and back-up tasks, but also for scalable, persistent storage for analytics. This code pattern shows an example Swift app for comparing images that are downloaded from a traditional server and images that are stored as objects on the cloud.

Description

This code pattern is an example “Image Downloader” app that compares downloaded Atlantic Hurricane Season images from a traditional server (Wikipedia in this example) and IBM Cloud Object Storage on an iPhone. The images are stored in Cloud Object Storage as objects in one bucket and a compressed file archive in another bucket.

This code pattern shows you how to complete the following tasks:

  • Create an iOS Swift application.
  • Incorporate Cloud Object Storage in a Swift application.

Flow

cloud object storage architecture flow diagram

  1. The user interacts with the app to start a download of objects (images) from Cloud Object Storage.
  2. The app makes the necessary calls to Cloud Object Storage to get the access token and the list of bucket objects, and to download the objects (images).
  3. The images are downloaded and displayed on the app to the user.

Instructions

Find detailed technical steps for this code pattern in the README.md file in the GitHub repository.

  1. Clone the repo.
  2. Install developer tools.
  3. Install dependencies.
  4. Create Cloud Object Storage buckets.
  5. Run the app in Xcode.