Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个Android SDK,我必须发送一个带有来自麦克风的原始音频字节的发布请求,我目前正在将字节写入这样的OkIo缓冲区
public void onAudioData(byte[] data, int size) { buffer.write(data); } }
如何使用 okHttp 将此缓冲区用作 RequestBody?有没有更好的解决方案?
先感谢您!