0

xslx file download error

asked 2021-04-21 18:15:39 +0800

cem35 gravatar image cem35
1

Hi,

I am using zk framework. I was using Excel-HSSF "xsl" file to create and download file. But "xsl" size not enough anymore so i changed to XSSF-"xslx" file. Now i can download small size documents with no error but when i try to create-download big size (greter than 20mb)excel document and download it browser gives error. (filename.xlsx.part could not be saved, because the source file could not be read). On Firefox i can't resume but other browsers i can click to document and press continue button. After that i can reach the documnet. How can i overcome this issue?

I am using HSSFworkbook-Sheet-Row,Cell,

String fileName = "filename";

out = new ByteArrayOutputStream();

workBook.write(out);

AMedia amedia = new AMedia(fileName + ".xlsx", "xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", out.toByteArray());

Filedownload.save(amedia);

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2021-04-21 18:15:39 +0800

Seen: 3 times

Last updated: Apr 21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More