I don't know how save pdf file from database as pdf file.
I have link
and action (maybe it's mistake but I don't know how make it better)
This action calls method readPaperFile()
When I click on link, I can download file readPaperFile.action (same name like name of action). If I rename file to file.pdf, file will open via Acrobat Reader and everything is great. But I can't save file as pdf type, everytime it is readPaperFile.action.
Does anybody know how resolve it?
Thank you very much
posted 3 years ago
You need to set a Content-Disposition header, something like this: