I'm trying to upload a streams with azure-storage, but the method CreateBlockBlobFromStream
needs the stream length. I not sure where to geth the length.
My code
const Readable = require('stream').Readable;
const rs = Readable();
rs._read = () => {
//here I read a file, loop through the lines and then generate some xml
};
const blobSvc = azure.createBlobService(storageName, key);
blobSvc.createBlockBlobFromStream ('data','test.xml', rs, ???, (err, r, resp) => {});