エンコードされた PDF を返す必要がありますが、そのためには MIME タイプが必要です。何を使えばいいですか?
ありがとう!
ExternalContext ec = fc.getExternalContext();
ec.responseReset();
ec.setResponseContentType("??")
ec.setResponseHeader("Content-Disposition", "attachment; filename=\"" + this.fileName + ".pdf" + "\"");
OutputStream output = ec.getResponseOutputStream();
output.write(encrypted);
output.flush();
output.close();
fc.responseComplete();