andylamax
08/15/2020, 4:46 PMktor-client
in multiplatform
?
I am aware of the formData{}
but I can't seem to find where I can append
a file
to the builder.edenman
08/15/2020, 9:22 PMByteStreamContent
or ByteArrayContent
as the request body
andylamax
08/15/2020, 9:50 PMedenman
08/15/2020, 10:00 PMktor-client
?andylamax
08/16/2020, 6:01 AMedenman
08/16/2020, 10:05 AMByteStreamContent
so you don’t have to load the whole thing into memory firstcontext.contentResolver.openInputStream(uri).toByteReadChannel()
and then pass that to ByteStreamContent
andylamax
08/16/2020, 10:08 AMopenInputStream()
edenman
08/16/2020, 10:14 AMandylamax
08/16/2020, 10:16 AM