Android how to post InputStream by chunks using okhttp
问题 I have an issue with FileInputStream on Android with Kotlin and Okhttp. I want to post a video file by using an API, but if this file is bigger than 128mb I have to upload it chunk by chunk. So, in my request header I have to specified the Content-Range (Something like this: Content-Range bytes 0-10485759/189305151 ) And I need to post only this part of the file, that why I'm using FileInputStream, then repeat for each chunks. I'm also using FileInputStream to avoid to split the file locally