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

269
Vistas
Multiple blobs to single zip file with JSzip?

i try to download multiple images with single ZIP file but i get the opposite. Which is to download zip files but they come in separated zip files . And when i console log the urls[] array they come in different arrays .

const fileURLs = window.URL.createObjectURL(result);// that is blob 
var zip = new JSZip();
var count = 0;
var zipFilename = "Selective.zip";
var urls = [ // i try to make them array 
fileURLs 
];

console.log(urls);

  urls.forEach(function(url){
  var filename = result.name;
  // loading a file and add it in a zip file
  JSZipUtils.getBinaryContent(url, function (err, data) {
     if(err) {
        throw err; // or handle the error
     }
     zip.file(filename, data, {binary:true});
     count++;
       zip.generateAsync({type:'blob'}).then(function(content) {
          saveAs(content, zipFilename);
       });

  });
});
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