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 Sun Nov 24, 2024 6:22 am
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 10111 • Total topics 2842 • Total members 2074