Hi colleagues.
If you see above attached picture, have a trouble to download file and received such kind of exception. Actually code is like this in the StandardDetailView<T>
:
InputStream inputStream = new FileInputStream("excel-file-path");
FileRef fileRef = fileStorage.saveStream("name.xlsx", inputStream);
fileTransferService.downloadAndWriteResponse(fileRef, fileStorage.getStorageName(), false, RequestContext.getResponse());
Can you provide most suitable way to download any created file(example: from apache poe to insert values) programmatically.
Thanks in advance!