Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

239
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda