This is currently already possible via export_bao, but it is a bit convoluted since you need to ignore some of the data. This should be a stream of Result<Bytes, E> where E is Into<io::Error> so it can be used with hyper etc. easily.