Hi,
when I try to open the webapp I receive a 504 Gateway Time-out error.
It seams that the webapp is not running at the moment.
It is currently Wed Dec 25, 2024 12:14 pm
tempDir = correctDirectoryPath(tempDir);
bytes = IOUtils.toByteArray(inputStream);
file = new File(tempDir + fileName + this.formatter.format(new Date()) + ".pdf");
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new ByteArrayInputStream(bytes));
VariablePrepare.prepare(wordMLPackage);
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
// write xml content in a file
try {
File fileContent = new File(tempDir + fileName + ".xml");
FileWriter myWriter = new FileWriter(fileContent);
myWriter.write(documentPart.getXML());
myWriter.close();
return fileContent;
}
catch (Exception e) {
}
Total posts 10112 • Total topics 2843 • Total members 2074