0 comments (0 comments)0 reactions (0 reactions)0 assignees (0 assignees)Java33.728 stars (33.728 stars)7.599 forks (7.599 forks)batch import
help wanted
Description
您好,大文件导出,服务端使用for循环写入到outputStream中,但是前端下载的时候要等到writer.finish()之后才开是往文件中写数据,为什么不能边写边下载呢?是因为XLSX文件类型的问题吗?
Guia do colaborador
- Pilha de tecnologia
- java
- Domain
- backendperformance
- Tipo Issue
- research
- DifficultyDificuldade de implementação estimada para um novo contribuidor, de 1 para alterações muito pequenas a 5 para trabalho de nível especializado.
- 3
- Tempo estimadoUm intervalo de tempo aproximado para um colaborador experiente investigar, implementar, testar e preparar um pull request.
- half day
- Status da atividadeQuão disponível o issue aparece agora: novo, ativo, obsoleto, bloqueado ou aguardando entrada do mantenedor.
- fresh
- ClarityCom que clareza o issue explica a mudança esperada, os critérios de aceitação e a próxima etapa.
- mostly clear
- Prerequisites
- JavaOutputStream understandingExcel file format basics
- Simpatia para novatosUma pontuação de 1 a 100 que estima o quão acessível este issue é para colaboradores iniciantes.
- 45
- Direção de pesquisa
- 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.