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 PMedenman
08/15/2020, 10:01 PMktor-client
?andylamax
08/16/2020, 6:01 AMedenman
08/16/2020, 10:05 AMedenman
08/16/2020, 10:06 AMByteStreamContent
so you don’t have to load the whole thing into memory firstedenman
08/16/2020, 10:07 AMcontext.contentResolver.openInputStream(uri).toByteReadChannel()
and then pass that to ByteStreamContent
edenman
08/16/2020, 10:08 AMandylamax
08/16/2020, 10:08 AMandylamax
08/16/2020, 10:09 AMandylamax
08/16/2020, 10:10 AMopenInputStream()
edenman
08/16/2020, 10:14 AMedenman
08/16/2020, 10:15 AMandylamax
08/16/2020, 10:16 AM