I'd like to implement streaming using Thrift (upload/download), but I don't see support for a streaming type in the list of Thrift supported types.
The closes data type is binary
, but it's translated to a ByteBuffer in Java. The problem with a ByteBuffer
is that the content must be preloaded into memory because it's backed by a byte array - not really streaming.
How to do byte streaming using Thrift?