https://bz.apache.org/bugzilla/show_bug.cgi?id=64860
Bug ID: 64860
Summary: Split large document multiple small document
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: XWPF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 37539
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37539&action=edit
WHile converting large docx file into sfdt format throwing error
HI I am converting docx into sfdt fromat it is worked for fine with 150
document having 200 pages if documents large file which contains 2500 pages (8
mb) file means it giving error out of memory error.Can any one help how to
resolve this error or suggest me solution to split large document into
multiple small documents.I have attached error also kindly check and make quick
response on that.
this is the exact code i am using.
@PostMapping("/wordeditor/Import")
public String uploadFile(@RequestParam("files") MultipartFile file)
throws Exception {
try {
return WordProcessorHelper.load(file.getInputStream(),
FormatType.Docx);
} catch (Exception e) {
e.printStackTrace();
return
"{\"sections\":[{\"blocks\":[{\"inlines\":[{\"text\":" + e.getMessage() +
"}]}]}]}";
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]