Don't compute a std::vector<uint8_t> just to write it out a stream.