Hi there, i’m using this code to visualize a pdf in a browserframe
browserFrame.setSource(StreamResource.class)
.setStreamSupplier(() -> new ByteArrayInputStream(bytes))
.setMimeType("tapplication/pdf");
Is all ok but in chrome, when i click on the download icon, the browser can’t recognize the pdf file and it doesn’t put the .pdf extension. With firefox the problem there isn’t. Can i do something to resolve this problem? Users usually doesn’t put the .pdf extension when they try to download a file and can’t open the file.