Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 1.37 KB

README.md

File metadata and controls

11 lines (7 loc) · 1.37 KB

Build Status

Save Image To Database

This sample app demonstrates how to download an image from a url and save it to a local SQLite database.

DownloadImageAsync() shows how to download the image as a byte[] from a URL using HttpClient.

The database model stores the image as a byte[]. When the image is retrieved from the database, it is converted from a byte[] to a Xamarin.Forms.ImageSource.

This app contains UITests. The UITests follow the recommended practice of Page Object testing. In the views, we've added an AutomationId to each control to show how UITest can interact with controls most efficiently, using their AutomationId. The test results from Xamarin Test Cloud are viewable here for iOS and here for Android.

UI Demo