doImageGetRequest

open fun doImageGetRequest(uri: URI): Bitmap

Performs and HTTP GET request expecting a bitmap image file in the response.

Return

a Bitmap decoded from the response content stream

Parameters

uri

the request URI

Throws


open fun doImageGetRequest(uri: URI, maxWidth: Int, maxHeight: Int): Bitmap

Performs and HTTP GET request expecting a bitmap image file in the response.

Return

a Bitmap decoded from the response content stream

Parameters

uri

the request URI

maxWidth

The maximum width of the target view.

maxHeight

The maximum height of the target view.

Throws