Image Client
object ImageClient
A Ktor HTTP client for downloading images from a URL.
This object handles the network request and provides the image data as a ByteArray. It includes basic error handling for common HTTP status codes.
Note: Caching is configured but currently disabled.
Example:
val imageData = ImageClient("https://example.com/image.png")
if (imageData != null) {
// Use the image data
}
Content copied to clipboard