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 May 15, 2024 11:34 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) {
}
<w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="5080000" cy="5080000"/>
<wp:effectExtent l="0" t="0" r="0" b="0"/>
<wp:docPr id="0" name="" descr=""/>
<wp:cNvGraphicFramePr>
<a:graphicFrameLocks noChangeAspect="true"/>
</wp:cNvGraphicFramePr>
<a:graphic>
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
Total posts 10090 • Total topics 2833 • Total members 2068