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

181
Views
Acceso aleatorio a un archivo en el navegador File API

Puedo usar File API para leer todo el archivo con reader.readAsArrayBuffer(file);

 const inputElement = document.getElementById("input"); inputElement.addEventListener("change", handleFiles, false); function handleFiles() { const fileList = this.files; if (fileList.length != 1) return const file = fileList[0]; const reader = new FileReader(); reader.onload = function(e) { console.log("e.target.result", e.target.result); ... } reader.readAsArrayBuffer(file);

¿Cómo realizo una lectura aleatoria de un archivo en el navegador? por ejemplo reader.readAsArrayBuffer(file, offset, length);

Los datos que necesito están al final del archivo, por lo que abortar después de una lectura parcial no es una solución.

Solo quiero leer una pequeña parte de un archivo de varios GB; leerlo todo en la RAM no es una opción. ¿Cómo puedo hacer esto?

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!