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.