Friday, 19 May 2017

Node.js - Download .docx file exported as html from onedrive using microsoftgraph api call

When making a call like this example from here

client
    .api('/me/drive/root/children/Doc.docx/content') 
    .getStream((err, downloadStream) => {
        let writeStream = fs.createWriteStream('Mydoc.docx');  
        downloadStream.pipe(writeStream).on('error', console.log);
    });

It works as expected. What I want is to get the .docx file as html. Is there any way to download it in html format? Or do I have to save the file and then try to export it to html. Thanks



via bgiuga

No comments:

Post a Comment