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
説明
您好,大文件导出,服务端使用for循环写入到outputStream中,但是前端下载的时候要等到writer.finish()之后才开是往文件中写数据,为什么不能边写边下载呢?是因为XLSX文件类型的问题吗?
コントリビューターガイド
- 技術スタック
- java
- 領域
- backendperformance
- Issue 種別
- research
- 難度新しい貢献者にとっての実装難度です。1 は非常に小さな変更、5 は専門的な作業です。
- 3
- 推定時間経験ある貢献者が調査、実装、テスト、pull request 準備にかけるおおよその時間範囲です。
- half day
- 活動状況Issue が今どれだけ取り組みやすいかを示します。新しい、活発、古い、ブロック中、またはメンテナー入力待ちなどです。
- fresh
- 明確さ期待される変更、受け入れ条件、次の手順がどれだけ明確かを示します。
- mostly clear
- 前提条件
- JavaOutputStream understandingExcel file format basics
- 初心者向け度初回貢献者にどれだけ取り組みやすいかを 1-100 で推定したスコアです。
- 45
- 調査方針
- 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.