0 commentaires (0 commentaires)0 réactions (0 réactions)0 assignés (0 assignés)Java33 728 stars (33 728 stars)7 599 forks (7 599 forks)batch import
help wanted
Description
您好,大文件导出,服务端使用for循环写入到outputStream中,但是前端下载的时候要等到writer.finish()之后才开是往文件中写数据,为什么不能边写边下载呢?是因为XLSX文件类型的问题吗?
Guide contributeur
- Stack technique
- java
- Domaine
- backendperformance
- Type d'issue
- research
- DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
- 3
- Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
- half day
- Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
- fresh
- ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
- mostly clear
- Prérequis
- JavaOutputStream understandingExcel file format basics
- Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
- 45
- Direction de recherche
- First, examine the EasyExcel source code, particularly the ExcelWriter and its write method to understand how data is flushed to the OutputStream. The issue likely arises because the XLSX format requires all sheet data to be written before finalizing the ZIP structure (due to the XML schema). To verify, look at the `write()` method in `com.alibaba.excel.ExcelWriter` and the `finish()` method. Consider whether streaming via a custom OutputStream that writes chunks as they come is feasible. Check if there are any open issues or discussions about streaming export in the repository. Suggest comparing with libraries like Apache POI that handle streaming differently.