toRequestBody
Returns a new request body that transmits this string. If contentType is non-null and lacks a charset, this will use UTF-8.
fun ByteArray.toRequestBody(contentType: MediaType? = null, offset: Int = 0, byteCount: Int = size): RequestBody
Returns a new request body that transmits this.