Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
axios download video from url to variable

I have a nodejs app that I want to use to download a video from a url to keep in a variable as binary. I'm starting off by sending a get request to the url with the response type being stream.

            const videoResponse = await axios({
                method: 'GET',
                url: url,
                responseType: 'stream',
              });

const video = await videoResponse.data;

I am then trying to store the result of that call in a variable but the response isn't a string of binary but rather an entire object. I've tried calling "pipe" on the data as I've seen from other examples though the object does not contain anything with that name. What do I need to do to store the video I'm downloading as binary in this variable?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!