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

402
Vistas
SXSSFWorkbook generates corrupted file

I'm using apache poi 5.2.0 to write large excel file (like 20k records or more). So i'm using SXSSFWorkbook because of low memory on server. The process works. I can open the file excel with ms excel and it works great. The files will be uploaded on another system by browser. But when the system validates the file an error is thrown: "The file is corrupted...". However, if I open the file after generation, and I save it, it works when I upload it on the external system. I tried to do this thing: after generating the file, I re-take the file with a XSSFWorkbook without doing nothing (only the close action on XSSF instance). In this way the file generated works on external system without any action after generation.

Unfortunately i can't do this, because with large excel the XSSF part causes the crash of job (because it load all excel file record on memory). Any idea?

Edit: the file generated has a lower weight than the same file after I open and save it. So, something change in the file, but I don't know what. How can I see what is changed?

about 4 years ago · Santiago Trujillo
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