sendImage

fun sendImage(imageURI: Uri?, tgtaddress: InetAddress, tgtport: Int, appctxt: Context): Boolean

Sends an image file to a target host and port using HTTP POST with Base64 encoding.

Return

True if the image was successfully sent, false otherwise.

Parameters

imageURI

The URI of the image to send. If null, the function returns false.

tgtaddress

The target host's InetAddress.

tgtport

The target port to send the image to.

appctxt

The application context used to access content resolver streams.