XLSX avec POI sur APPENGINE
Bonjour,
j'ai un problème d'ouverture de fichier xlsx crée avec POI est déployé sur appengine. La même méthode utilisé pour générer un fichier xls marche très bien.
Le mimeType pour le xlsx est : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| protected byte[] getExcel() throws IOException {
LOGGER.info("getExcel");
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet worksheet = workbook.createSheet("new sheet");
HSSFRow row1 = worksheet.createRow(0);
HSSFCell cellA1 = row1.createCell(0);
cellA1.setCellValue("Hello");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
workbook.write(outputStream);
outputStream.close();
return outputStream.toByteArray();
} |
Si quelqu'un a réussi à avoir un xlsx sur appengine je veux bien savoir comment.