In Android, we can get the image from synchronously and asynchronously, but it is more common to see in the later.
Download image synchronously
To download an image from a URL in Kotlin, you can use the URL class and the readBytes function from the kotlin.io library. The URL