Closed n-13 closed 2 years ago
https://github.com/cuba-platform/cuba/blob/b56d4a98a13f5657c589d59ccbc435509dc119e3/modules/gui/src/com/haulmont/cuba/gui/export/ByteArrayDataProvider.java#L78
It can be done in this way for example:
return new FileInputStream(file) { @Override public void close() throws IOException { super.close(); file.delete(); } };
https://github.com/jmix-framework/jmix/issues/412
https://github.com/cuba-platform/cuba/blob/b56d4a98a13f5657c589d59ccbc435509dc119e3/modules/gui/src/com/haulmont/cuba/gui/export/ByteArrayDataProvider.java#L78
It can be done in this way for example: