question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cant get a valid file (test zip and mp3)

   b2.downloadFileById(fileid).then(function(file){
            // tried   var bitmap = new Buffer(file.data,'base64');
                //fs.writeFile('testload.txt',bitmap)

                   fs.writeFile('testload.mp3',file.data, function(err) {
                        console.log(err);
                });
});

Any idea? thnx

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
yakovkhalinskycommented, Mar 15, 2016

Have reproduced the issue you’re having.

Not sure what has changed. I will investigate and make a fix soon. 👍

0reactions
haywirezcommented, May 12, 2018

Important: need to add 'arraybuffer' as a responseType property to make this work as it should.

b2.downloadFileById({
    fileId: fileId,
    responseType: 'arraybuffer',
    ...
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

Download Binary Distribution
Download Binary Distribution. As of OpendTect 6.4.5 this suite of plugins can be installed using the OpendTect Installation Manager.
Read more >
Binary releases - Code::Blocks
NOTE: The default builds are 64 bit (starting with release 20.03). We also provide 32bit builds for convenience. Microsoft Windows. File, Download from ......
Read more >
Start Trading with MetaTrader 5 - Binary.com
Binary.com gives everyone an easy way to participate in the financial markets. ... MacOS, or Linux operating system – no download or installation...
Read more >
Download a binary file - SWI-Prolog
Our Windows binaries are cross-compiled on an isolated Linux container. ... Please select the checkbox below to enable the actual download link.
Read more >
Enterprise EDR: How to Download a Binary from the Console
Navigate to the Binary Details page via 1 of 2 methods: From the Investigate page. Select the process name hyperlink · Select the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found