for example, the following code
stream will be consumed after use, but I want to operate this stream, many times. My following code is obtained again through fs, but Io is too frequent
const stream = await ctx.getFileStream();
const fs = require("fs");
const qhash = "123123";
//
await new Promise(resolve =>
stream
.pipe(fs.createWriteStream(`upload/${qhash}.zip`))
.on("finish", resolve));
getManifest(`upload/${qhash}.zip`);
const stream2 = await fs.createReadStream(`upload/${qhash}.zip`);
const sssssshash = await qetag(stream2);
const stream3 = await fs.createReadStream(`upload/${qhash}.zip`);
// console.log(buffer);