I´m trying to open a pdf that I have created using iText library in my browser, but it fails. This is the code I´m using to send to browser
File file = n
You specify the mimetype as application/text, when it should be application/pdf.
application/text
application/pdf